diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c index 8b0d672e97d..96924506cf2 100644 --- a/dlls/gdi32/freetype.c +++ b/dlls/gdi32/freetype.c @@ -33,7 +33,9 @@ # include #endif #include -#include +#ifdef HAVE_DIRENT_H +# include +#endif #include #include diff --git a/dlls/kernel32/oldconfig.c b/dlls/kernel32/oldconfig.c index 09e407b59d5..ee41d813143 100644 --- a/dlls/kernel32/oldconfig.c +++ b/dlls/kernel32/oldconfig.c @@ -32,7 +32,9 @@ # include #endif #include -#include +#ifdef HAVE_DIRENT_H +# include +#endif #ifdef HAVE_SYS_IOCTL_H #include #endif diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c index 0e99c4f6661..dee0ce6ea5b 100644 --- a/dlls/ntdll/directory.c +++ b/dlls/ntdll/directory.c @@ -24,7 +24,9 @@ #include "wine/port.h" #include -#include +#ifdef HAVE_DIRENT_H +# include +#endif #include #include #include diff --git a/dlls/ntdll/server.c b/dlls/ntdll/server.c index 6e41eb5d87d..62ccc2c650b 100644 --- a/dlls/ntdll/server.c +++ b/dlls/ntdll/server.c @@ -23,7 +23,9 @@ #include #include -#include +#ifdef HAVE_DIRENT_H +# include +#endif #include #include #include diff --git a/dlls/shell32/shfldr_unixfs.c b/dlls/shell32/shfldr_unixfs.c index 332dd45a3b9..b612ef78b72 100644 --- a/dlls/shell32/shfldr_unixfs.c +++ b/dlls/shell32/shfldr_unixfs.c @@ -128,7 +128,9 @@ #include #include #include -#include +#ifdef HAVE_DIRENT_H +# include +#endif #include #ifdef HAVE_UNISTD_H # include diff --git a/dlls/shell32/trash.c b/dlls/shell32/trash.c index 2762f047aaa..a366f625ca7 100644 --- a/dlls/shell32/trash.c +++ b/dlls/shell32/trash.c @@ -30,7 +30,9 @@ #ifdef HAVE_UNISTD_H # include #endif -#include +#ifdef HAVE_DIRENT_H +# include +#endif #include "windef.h" #include "winbase.h" diff --git a/dlls/wineps.drv/mkagl.c b/dlls/wineps.drv/mkagl.c index 3606fe675a1..db789f1b37b 100644 --- a/dlls/wineps.drv/mkagl.c +++ b/dlls/wineps.drv/mkagl.c @@ -16,8 +16,12 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "config.h" + #include -#include +#ifdef HAVE_DIRENT_H +# include +#endif #include #include #include diff --git a/dlls/wineps.drv/truetype.c b/dlls/wineps.drv/truetype.c index 0254a75f482..b5269590da1 100644 --- a/dlls/wineps.drv/truetype.c +++ b/dlls/wineps.drv/truetype.c @@ -59,7 +59,9 @@ #endif #include -#include +#ifdef HAVE_DIRENT_H +# include +#endif #include #include #include diff --git a/dlls/wineps.drv/type1afm.c b/dlls/wineps.drv/type1afm.c index dd7e0ce3176..85aca4262be 100644 --- a/dlls/wineps.drv/type1afm.c +++ b/dlls/wineps.drv/type1afm.c @@ -32,7 +32,9 @@ #include #include #include -#include +#ifdef HAVE_DIRENT_H +# include +#endif #include #include #include /* INT_MIN */