Fixed dlls/ntdll/cdrom.c compilation in Darwin by adding HAVE_IOKit

detection to configure and defining SENSEBUFLEN as kSenseDefaultSize
(which is corresponding IOKit enum value).
This commit is contained in:
Phil Krylov 2005-07-01 19:15:26 +00:00 committed by Alexandre Julliard
parent 31506e30a3
commit 0f6c0394bf
4 changed files with 14 additions and 0 deletions

2
configure vendored
View File

@ -7108,9 +7108,11 @@ done
for ac_header in \
IOKit/IOKitLib.h \
arpa/inet.h \
arpa/nameser.h \
asm/types.h \

View File

@ -171,6 +171,7 @@ OPENGL_LIBS=""
dnl **** Check for header files ****
AC_CHECK_HEADERS(\
IOKit/IOKitLib.h \
arpa/inet.h \
arpa/nameser.h \
asm/types.h \

View File

@ -75,6 +75,14 @@
# include <sys/scsiio.h>
#endif
#ifdef HAVE_IOKIT_IOKITLIB_H
# ifndef SENSEBUFLEN
# include <IOKit/IOKitLib.h>
# include <IOKit/scsi/SCSICmds_REQUEST_SENSE_Defs.h>
# define SENSEBUFLEN kSenseDefaultSize
# endif
#endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "ntstatus.h"

View File

@ -224,6 +224,9 @@
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the <IOKit/IOKitLib.h> header file. */
#undef HAVE_IOKIT_IOKITLIB_H
/* Define to 1 if you have the <io.h> header file. */
#undef HAVE_IO_H