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:
parent
31506e30a3
commit
0f6c0394bf
|
@ -7108,9 +7108,11 @@ done
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
for ac_header in \
|
||||
IOKit/IOKitLib.h \
|
||||
arpa/inet.h \
|
||||
arpa/nameser.h \
|
||||
asm/types.h \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue