shell32: Fix inclusion of conditional headers (spotted by winapi_check).

Francois Gouget fgouget at free.fr
Sun Nov 12 12:45:52 CST 2006


---
 dlls/shell32/trash.c |    8 ++++++--
 dlls/shell32/xdg.c   |    8 ++++++--
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/dlls/shell32/trash.c b/dlls/shell32/trash.c
index 4fe43e5..c9a35da 100644
--- a/dlls/shell32/trash.c
+++ b/dlls/shell32/trash.c
@@ -20,10 +20,14 @@
  */
 
 #include <stdarg.h>
-#include <sys/stat.h>
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
 #include <sys/types.h>
 #include <stdlib.h>
-#include <unistd.h>
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
 #include <dirent.h>
 
 #include "windef.h"
diff --git a/dlls/shell32/xdg.c b/dlls/shell32/xdg.c
index 188d21c..9a1df56 100644
--- a/dlls/shell32/xdg.c
+++ b/dlls/shell32/xdg.c
@@ -21,8 +21,12 @@
 #include <stdarg.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/stat.h>
-#include <unistd.h>
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
 #include <errno.h>
  
 #include "windef.h"
-- 
1.4.1.1




More information about the wine-patches mailing list