Merge pull request #572 from jack-pappas/sockets-ipproto
[mono.git] / mono / utils / mono-poll.h
index ffbe4d88c6bae7d96636e233b3bce8800beb7b8c..1d4c82afa5f8e09a1f56dd5afc3001a60b994800 100644 (file)
@@ -2,9 +2,13 @@
 #define MONO_POLL_H
 
 #include <config.h>
+#ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
+#endif
 #include <sys/types.h>
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
 
 #ifdef HAVE_POLL
 #include <sys/poll.h>
@@ -20,7 +24,7 @@ typedef struct pollfd mono_pollfd;
 
 #else
 
-#ifdef PLATFORM_WIN32
+#ifdef HOST_WIN32
 #include <windows.h>
 #endif
 #define MONO_POLLIN            1