Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
368dab37
Commit
368dab37
authored
Feb 11, 2006
by
Phil Krylov
Committed by
Alexandre Julliard
Feb 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix tape.c compilation on Darwin.
parent
06188b6d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
configure
configure
+6
-0
configure.ac
configure.ac
+2
-1
tape.c
dlls/ntdll/tape.c
+3
-1
No files found.
configure
View file @
368dab37
...
...
@@ -17836,6 +17836,7 @@ _ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#ifdef HAVE_SYS_MTIO_H
#include <sys/mtio.h>
#endif
...
...
@@ -17882,6 +17883,7 @@ _ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#ifdef HAVE_SYS_MTIO_H
#include <sys/mtio.h>
#endif
...
...
@@ -17949,6 +17951,7 @@ _ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#ifdef HAVE_SYS_MTIO_H
#include <sys/mtio.h>
#endif
...
...
@@ -17995,6 +17998,7 @@ _ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#ifdef HAVE_SYS_MTIO_H
#include <sys/mtio.h>
#endif
...
...
@@ -18062,6 +18066,7 @@ _ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#ifdef HAVE_SYS_MTIO_H
#include <sys/mtio.h>
#endif
...
...
@@ -18108,6 +18113,7 @@ _ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#ifdef HAVE_SYS_MTIO_H
#include <sys/mtio.h>
#endif
...
...
configure.ac
View file @
368dab37
...
...
@@ -1357,7 +1357,8 @@ AC_CHECK_MEMBERS([siginfo_t.si_fd],,,[#include <signal.h>])
dnl Check for struct mtget members
AC_CHECK_MEMBERS([struct mtget.mt_blksiz, struct mtget.mt_gstat, struct mtget.mt_blkno],,,
[#ifdef HAVE_SYS_MTIO_H
[#include <sys/types.h>
#ifdef HAVE_SYS_MTIO_H
#include <sys/mtio.h>
#endif])
...
...
dlls/ntdll/tape.c
View file @
368dab37
...
...
@@ -344,7 +344,7 @@ static NTSTATUS TAPE_Prepare( int fd, TAPE_PREPARE *data )
*/
static
NTSTATUS
TAPE_SetDriveParams
(
int
fd
,
TAPE_SET_DRIVE_PARAMETERS
*
data
)
{
#if
def HAVE_SYS_MTIO_H
#if
defined(HAVE_SYS_MTIO_H) && defined(MTCOMPRESSION)
struct
mtop
cmd
;
TRACE
(
"fd: %d ECC: 0x%02x, compression: 0x%02x padding: 0x%02x
\n
"
,
...
...
@@ -425,6 +425,7 @@ static NTSTATUS TAPE_SetPosition( int fd, TAPE_SET_POSITION *data )
cmd
.
mt_count
=
-
data
->
Offset
.
u
.
LowPart
;
}
break
;
#if defined(MTFSS) && defined(MTBSS)
case
TAPE_SPACE_SETMARKS
:
if
(
data
->
Offset
.
u
.
LowPart
>=
0
)
{
cmd
.
mt_op
=
MTFSS
;
...
...
@@ -435,6 +436,7 @@ static NTSTATUS TAPE_SetPosition( int fd, TAPE_SET_POSITION *data )
cmd
.
mt_count
=
-
data
->
Offset
.
u
.
LowPart
;
}
break
;
#endif
case
TAPE_LOGICAL_BLOCK
:
case
TAPE_PSEUDO_LOGICAL_BLOCK
:
case
TAPE_SPACE_RELATIVE_BLOCKS
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment