Hi,
Portability fixes:
Changelog:
Jon Griffiths <jon_p_griffiths@yahoo.com>
+libs/port/pread.c libs/port/pwrite.c libs/wpp/preproc.c
programs/wineconsole/curses.c programs/winedbg/ext_debugger.c
programs/winedbg/gdbproxy.c programs/winedbg/msc.c
programs/winedbg/source.c programs/winedbg/stabs.c
programs/winedbg/types.c
Not everyone has <unistd.h>, some files need <io.h> too (msvc).
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
--- wine/libs/port/pread.c 2003-03-19 22:09:17.000000000 +0000
+++ wine-develop/libs/port/pread.c 2003-09-21 05:48:01.000000000 +0100
@@ -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 */
--- wine/libs/port/pwrite.c 2003-03-19 22:09:17.000000000 +0000
+++ wine-develop/libs/port/pwrite.c 2003-09-21 05:47:52.000000000 +0100
@@ -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 */
--- wine/libs/wpp/preproc.c 2003-08-20 01:01:34.000000000 +0100
+++ wine-develop/libs/wpp/preproc.c 2003-09-21 04:13:17.000000000 +0100
@@ -28,6 +28,9 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
+#ifdef HAVE_IO_H
+# include <io.h>
+#endif
#include "wpp_private.h"
--- wine/programs/wineconsole/curses.c 2003-09-11 17:11:46.000000000 +0100
+++ wine-develop/programs/wineconsole/curses.c 2003-09-21 06:05:38.000000000 +0100
@@ -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>
--- wine/programs/winedbg/ext_debugger.c 2003-02-19 22:09:00.000000000 +0000
+++ wine-develop/programs/winedbg/ext_debugger.c 2003-09-21 06:08:09.000000000 +0100
@@ -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>
--- wine/programs/winedbg/gdbproxy.c 2003-09-11 17:11:46.000000000 +0100
+++ wine-develop/programs/winedbg/gdbproxy.c 2003-09-21 06:10:54.000000000 +0100
@@ -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"
--- wine/programs/winedbg/msc.c 2003-08-20 01:01:35.000000000 +0100
+++ wine-develop/programs/winedbg/msc.c 2003-09-21 06:12:57.000000000 +0100
@@ -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
--- wine/programs/winedbg/source.c 2003-02-19 22:09:01.000000000 +0000
+++ wine-develop/programs/winedbg/source.c 2003-09-21 06:14:46.000000000 +0100
@@ -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
--- wine/programs/winedbg/stabs.c 2003-08-13 19:29:22.000000000 +0100
+++ wine-develop/programs/winedbg/stabs.c 2003-09-21 06:16:27.000000000 +0100
@@ -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
--- wine/programs/winedbg/types.c 2003-08-13 19:29:22.000000000 +0100
+++ wine-develop/programs/winedbg/types.c 2003-09-21 06:18:13.000000000 +0100
@@ -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"