Commit 09fefeed authored by Jon Griffiths's avatar Jon Griffiths Committed by Alexandre Julliard

Not everyone has <unistd.h>, some files need <io.h> too (msvc).

parent 33c069ae
...@@ -22,9 +22,14 @@ ...@@ -22,9 +22,14 @@
#include "wine/port.h" #include "wine/port.h"
#include <errno.h> #include <errno.h>
#include <stdio.h>
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#ifdef HAVE_IO_H
# include <io.h>
#endif
/* FIXME: this is not thread-safe */ /* FIXME: this is not thread-safe */
......
...@@ -22,9 +22,13 @@ ...@@ -22,9 +22,13 @@
#include "wine/port.h" #include "wine/port.h"
#include <errno.h> #include <errno.h>
#include <stdio.h>
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#ifdef HAVE_IO_H
# include <io.h>
#endif
/* FIXME: this is not thread-safe */ /* FIXME: this is not thread-safe */
......
...@@ -28,6 +28,9 @@ ...@@ -28,6 +28,9 @@
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#ifdef HAVE_IO_H
# include <io.h>
#endif
#include "wpp_private.h" #include "wpp_private.h"
......
...@@ -42,7 +42,9 @@ ...@@ -42,7 +42,9 @@
#include <ncurses.h> #include <ncurses.h>
#endif #endif
#undef KEY_EVENT /* avoid redefinition warning */ #undef KEY_EVENT /* avoid redefinition warning */
#ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif
#include <windef.h> #include <windef.h>
#include <winbase.h> #include <winbase.h>
#include <winnls.h> #include <winnls.h>
......
...@@ -21,7 +21,9 @@ ...@@ -21,7 +21,9 @@
#include "config.h" #include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <unistd.h> #ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
......
...@@ -41,7 +41,9 @@ ...@@ -41,7 +41,9 @@
#endif #endif
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet/tcp.h> #include <netinet/tcp.h>
#include <unistd.h> #ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
......
...@@ -33,7 +33,9 @@ ...@@ -33,7 +33,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifndef PATH_MAX #ifndef PATH_MAX
#define PATH_MAX MAX_PATH #define PATH_MAX MAX_PATH
#endif #endif
......
...@@ -30,7 +30,9 @@ ...@@ -30,7 +30,9 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <limits.h> #include <limits.h>
#include <string.h> #include <string.h>
#include <unistd.h> #ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifndef PATH_MAX #ifndef PATH_MAX
#define PATH_MAX MAX_PATH #define PATH_MAX MAX_PATH
#endif #endif
......
...@@ -42,7 +42,9 @@ ...@@ -42,7 +42,9 @@
#include <limits.h> #include <limits.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <stdio.h> #include <stdio.h>
#ifndef PATH_MAX #ifndef PATH_MAX
#define PATH_MAX MAX_PATH #define PATH_MAX MAX_PATH
......
...@@ -29,7 +29,9 @@ ...@@ -29,7 +29,9 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <limits.h> #include <limits.h>
#include <string.h> #include <string.h>
#include <unistd.h> #ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include "debugger.h" #include "debugger.h"
......
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