Commit 0f6c0394 authored by Phil Krylov's avatar Phil Krylov Committed by Alexandre Julliard

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).
parent 31506e30
......@@ -7110,7 +7110,9 @@ 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment