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