diff lib-src/wakeup.c @ 410:de805c49cfc1 r21-2-35

Import from CVS: tag r21-2-35
author cvs
date Mon, 13 Aug 2007 11:19:21 +0200
parents 74fd4e045ea6
children 697ef44129c6
line wrap: on
line diff
--- a/lib-src/wakeup.c	Mon Aug 13 11:18:12 2007 +0200
+++ b/lib-src/wakeup.c	Mon Aug 13 11:19:21 2007 +0200
@@ -4,20 +4,22 @@
 
 #if __STDC__ || defined(STDC_HEADERS)
 #include <stdlib.h>
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
+#endif
 
 #include <stdio.h>
 #include <sys/types.h>
 
-#ifdef WINDOWSNT
+#ifdef WIN32_NATIVE
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 #undef sleep
 #define sleep(t) Sleep ((t) * 1000)
 #define getppid() (0)
 #undef HAVE_SYS_TIME_H
-#endif /* WINDOWSNT */
+#endif /* WIN32_NATIVE */
 
 #ifdef TIME_WITH_SYS_TIME
 #include <sys/time.h>