[Patch] Improper header position on Mac OS X
Pierre d'Herbemont
stegefin at free.fr
Sat Jun 18 14:39:14 CDT 2005
Alexandre,
this patch fix a compilation error on Mac OS X.
Pierre.
ChangeLog:
Move the (Mac OS X) IOKit headers to the top of the file to prevent a
compilation failure.
-------------- next part --------------
Index: dlls/ntdll/file.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/file.c,v
retrieving revision 1.91
diff -u -r1.91 file.c
--- dlls/ntdll/file.c 9 Jun 2005 09:45:42 -0000 1.91
+++ dlls/ntdll/file.c 18 Jun 2005 19:38:08 -0000
@@ -57,6 +57,12 @@
# endif
#endif
+#ifdef __APPLE__
+# include <IOKit/IOKitLib.h>
+# include <CoreFoundation/CFNumber.h> /* for kCFBooleanTrue, kCFBooleanFalse */
+# include <paths.h>
+#endif
+
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "wine/unicode.h"
@@ -1549,9 +1555,6 @@
info->Characteristics |= FILE_REMOTE_DEVICE;
}
#elif defined (__APPLE__)
-# include <IOKit/IOKitLib.h>
-# include <CoreFoundation/CFNumber.h> /* for kCFBooleanTrue, kCFBooleanFalse */
-# include <paths.h>
struct statfs stfs;
info->DeviceType = FILE_DEVICE_DISK_FILE_SYSTEM;
More information about the wine-patches
mailing list