Francois Gouget : ntdll: Protect sys/stat.h inclusion.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Feb 7 14:20:16 CST 2006
Module: wine
Branch: refs/heads/master
Commit: f8ed165609df0ed8b358611c148fb0008520aad7
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=f8ed165609df0ed8b358611c148fb0008520aad7
Author: Francois Gouget <fgouget at free.fr>
Date: Tue Feb 7 21:17:45 2006 +0100
ntdll: Protect sys/stat.h inclusion.
---
dlls/ntdll/virtual.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
index e74b3e0..c33dce6 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -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-cvs
mailing list