2007-04-27 Jonathan Chambers <joncham@gmail.com>
[mono.git] / eglib / test / spawn.c
index cfeeabbd222b38207c53addda66a3b3099765ec4..ec30fc8641e0ae08a3b1ee73b5e194b96264788c 100644 (file)
@@ -1,9 +1,18 @@
+#include <config.h>
 #include <glib.h>
 #include <string.h>
 #include <stdio.h>
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
 #include "test.h"
 
+#ifdef G_OS_WIN32
+#include <io.h>
+#define read _read
+#define close _close
+#endif
+
 RESULT
 test_spawn_sync ()
 {
@@ -70,3 +79,4 @@ static Test spawn_tests [] = {
 
 DEFINE_TEST_GROUP_INIT(spawn_tests_init, spawn_tests)
 
+