Commit f9280a3a authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Protect the unistd.h and sys/stat.h includes.

Include config.h. Fixes warnings reported by winapi_check.
parent b80fbbb8
...@@ -24,13 +24,19 @@ ...@@ -24,13 +24,19 @@
* - Thread-safing * - Thread-safing
*/ */
#include "config.h"
#include <time.h> #include <time.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include "crypt.h" #include "crypt.h"
#include "winnls.h" #include "winnls.h"
......
...@@ -23,7 +23,9 @@ ...@@ -23,7 +23,9 @@
#include <stdarg.h> #include <stdarg.h>
#include <limits.h> #include <limits.h>
#include <dirent.h> #include <dirent.h>
#include <unistd.h> #ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_SYS_STAT_H #ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> # include <sys/stat.h>
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment