X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=lib-src%2Fwakeup.c;h=a97108792ace7d3414540f8f078e064a797a10ab;hp=618938e592a3467a61d514ab3d37c710e880d62c;hb=762383636a99307282c2d93d26c35c046ec24da1;hpb=e31bfd1501359ce20fe1caf6b913a019318ec83c diff --git a/lib-src/wakeup.c b/lib-src/wakeup.c index 618938e..a971087 100644 --- a/lib-src/wakeup.c +++ b/lib-src/wakeup.c @@ -4,20 +4,22 @@ #if __STDC__ || defined(STDC_HEADERS) #include +#ifdef HAVE_UNISTD_H #include #endif +#endif #include #include -#ifdef WINDOWSNT +#ifdef WIN32_NATIVE #define WIN32_LEAN_AND_MEAN #include #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