Protect sys/stat.h inclusion
Francois Gouget
fgouget at free.fr
Tue Feb 7 12:00:36 CST 2006
Changelog:
* dlls/ntdll/virtual.c
Francois Gouget <fgouget at free.fr>
Protect sys/stat.h inclusion (spotted by winapi_check).
--
Francois Gouget <fgouget at free.fr> http://fgouget.free.fr/
Linux: It is now safe to turn on your computer.
-------------- next part --------------
Index: dlls/ntdll/virtual.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/virtual.c,v
retrieving revision 1.83
diff -u -p -r1.83 virtual.c
--- dlls/ntdll/virtual.c 13 Jan 2006 13:32:28 -0000 1.83
+++ dlls/ntdll/virtual.c 7 Feb 2006 16:44:04 -0000
@@ -35,9 +35,11 @@
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
-#include <sys/stat.h>
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
#ifdef HAVE_SYS_MMAN_H
-#include <sys/mman.h>
+# include <sys/mman.h>
#endif
#define NONAMELESSUNION
More information about the wine-patches
mailing list