summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2004-03-31 02:13:52 +0000
committerTor Lillqvist <tml@src.gnome.org>2004-03-31 02:13:52 +0000
commit7f38edf367853e14dc79e325b5f71f9af25b8814 (patch)
tree649d5495590b67b98a32987e8dd953216eb1d8d7 /tests
parent81f9b7dba5fb9518a8e63d05a0a7aefb3978a4ab (diff)
Minor Cygwin fix. (#138405, Roger Leigh)
2004-03-31 Tor Lillqvist <tml@iki.fi> * tests/spawn-test-win32-gui.c: Minor Cygwin fix. (#138405, Roger Leigh)
Diffstat (limited to 'tests')
-rw-r--r--tests/spawn-test-win32-gui.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/spawn-test-win32-gui.c b/tests/spawn-test-win32-gui.c
index aade3e73a..45529d011 100644
--- a/tests/spawn-test-win32-gui.c
+++ b/tests/spawn-test-win32-gui.c
@@ -1,9 +1,18 @@
#include <windows.h>
+#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
+#ifdef __CYGWIN__
+/* For read() and write() */
+#include <unistd.h>
+/* Cygwin does not prototype __argc and __argv in stdlib.h */
+extern int __argc;
+extern char** __argv;
+#endif
+
int _stdcall
WinMain (struct HINSTANCE__ *hInstance,
struct HINSTANCE__ *hPrevInstance,