From f9280a3a95d6667028e284f3c7def3a402d19a80 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Fri, 17 Jun 2005 20:56:02 +0000 Subject: [PATCH] Protect the unistd.h and sys/stat.h includes. Include config.h. Fixes warnings reported by winapi_check. --- dlls/advapi32/crypt.c | 10 ++++++++-- dlls/shell32/shfldr_unixfs.c | 4 +++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/dlls/advapi32/crypt.c b/dlls/advapi32/crypt.c index 8c08fca3eed..4fd2f095ae9 100644 --- a/dlls/advapi32/crypt.c +++ b/dlls/advapi32/crypt.c @@ -24,13 +24,19 @@ * - Thread-safing */ +#include "config.h" + #include #include #include #include -#include +#ifdef HAVE_SYS_STAT_H +# include +#endif #include -#include +#ifdef HAVE_UNISTD_H +# include +#endif #include "crypt.h" #include "winnls.h" diff --git a/dlls/shell32/shfldr_unixfs.c b/dlls/shell32/shfldr_unixfs.c index d02a0664aaf..2bde3d9529f 100644 --- a/dlls/shell32/shfldr_unixfs.c +++ b/dlls/shell32/shfldr_unixfs.c @@ -23,7 +23,9 @@ #include #include #include -#include +#ifdef HAVE_UNISTD_H +# include +#endif #ifdef HAVE_SYS_STAT_H # include #endif