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

This commit is contained in:
Jon Griffiths 2003-09-23 22:54:57 +00:00 committed by Alexandre Julliard
parent 33c069ae30
commit 09fefeed7a
10 changed files with 32 additions and 6 deletions

View file

@ -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 */

View file

@ -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 */

View file

@ -28,6 +28,9 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_IO_H
# include <io.h>
#endif
#include "wpp_private.h"

View file

@ -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>

View file

@ -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>

View file

@ -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"

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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"