Mercurial > hg > xemacs-beta
diff lib-src/wakeup.c @ 442:abe6d1db359e r21-2-36
Import from CVS: tag r21-2-36
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:35:02 +0200 |
parents | 84b14dcb0985 |
children |
line wrap: on
line diff
--- a/lib-src/wakeup.c Mon Aug 13 11:33:40 2007 +0200 +++ b/lib-src/wakeup.c Mon Aug 13 11:35:02 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>