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 \
|
for ac_header in \
|
||||||
|
IOKit/IOKitLib.h \
|
||||||
arpa/inet.h \
|
arpa/inet.h \
|
||||||
arpa/nameser.h \
|
arpa/nameser.h \
|
||||||
asm/types.h \
|
asm/types.h \
|
||||||
|
|
|
@ -171,6 +171,7 @@ OPENGL_LIBS=""
|
||||||
dnl **** Check for header files ****
|
dnl **** Check for header files ****
|
||||||
|
|
||||||
AC_CHECK_HEADERS(\
|
AC_CHECK_HEADERS(\
|
||||||
|
IOKit/IOKitLib.h \
|
||||||
arpa/inet.h \
|
arpa/inet.h \
|
||||||
arpa/nameser.h \
|
arpa/nameser.h \
|
||||||
asm/types.h \
|
asm/types.h \
|
||||||
|
|
|
@ -75,6 +75,14 @@
|
||||||
# include <sys/scsiio.h>
|
# include <sys/scsiio.h>
|
||||||
#endif
|
#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 NONAMELESSUNION
|
||||||
#define NONAMELESSSTRUCT
|
#define NONAMELESSSTRUCT
|
||||||
#include "ntstatus.h"
|
#include "ntstatus.h"
|
||||||
|
|
|
@ -224,6 +224,9 @@
|
||||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||||
#undef HAVE_INTTYPES_H
|
#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. */
|
/* Define to 1 if you have the <io.h> header file. */
|
||||||
#undef HAVE_IO_H
|
#undef HAVE_IO_H
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue