2007-04-27 Jonathan Chambers <joncham@gmail.com>
[mono.git] / eglib / test / dir.c
index c72e204d957d47c18414d599007acc9f9f3d294e..f8711217250b0d4772e55c84d7e805bca61369fe 100644 (file)
@@ -1,8 +1,13 @@
+#include <config.h>
 #include <glib.h>
 #include <string.h>
 #include <stdio.h>
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
+#ifdef G_OS_UNIX
 #include <pthread.h>
+#endif
 #include "test.h"
 
 /* This test is just to be used with valgrind */
@@ -58,3 +63,4 @@ static Test dir_tests [] = {
 
 DEFINE_TEST_GROUP_INIT(dir_tests_init, dir_tests)
 
+