Skip to content
Snippets Groups Projects
Commit 0f6c0394 authored by Phil Krylov's avatar Phil Krylov Committed by Alexandre Julliard
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment