This commit was generated by cvs2svn to compensate for changes in r2786,
[chise/xemacs-chise.git.1] / lib-src / wakeup.c
index 979bd82..a971087 100644 (file)
@@ -1,23 +1,25 @@
 /* Program to produce output at regular intervals.  */
 
-#include <../src/config.h>
+#include <config.h>
 
 #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>