comparison lib-src/wakeup.c @ 412:697ef44129c6 r21-2-14

Import from CVS: tag r21-2-14
author cvs
date Mon, 13 Aug 2007 11:20:41 +0200
parents de805c49cfc1
children
comparison
equal deleted inserted replaced
411:12e008d41344 412:697ef44129c6
1 /* Program to produce output at regular intervals. */ 1 /* Program to produce output at regular intervals. */
2 2
3 #include <config.h> 3 #include <../src/config.h>
4 4
5 #if __STDC__ || defined(STDC_HEADERS) 5 #if __STDC__ || defined(STDC_HEADERS)
6 #include <stdlib.h> 6 #include <stdlib.h>
7 #ifdef HAVE_UNISTD_H
8 #include <unistd.h> 7 #include <unistd.h>
9 #endif
10 #endif 8 #endif
11 9
12 #include <stdio.h> 10 #include <stdio.h>
13 #include <sys/types.h> 11 #include <sys/types.h>
14 12
15 #ifdef WIN32_NATIVE 13 #ifdef WINDOWSNT
16 #define WIN32_LEAN_AND_MEAN 14 #define WIN32_LEAN_AND_MEAN
17 #include <windows.h> 15 #include <windows.h>
18 #undef sleep 16 #undef sleep
19 #define sleep(t) Sleep ((t) * 1000) 17 #define sleep(t) Sleep ((t) * 1000)
20 #define getppid() (0) 18 #define getppid() (0)
21 #undef HAVE_SYS_TIME_H 19 #undef HAVE_SYS_TIME_H
22 #endif /* WIN32_NATIVE */ 20 #endif /* WINDOWSNT */
23 21
24 #ifdef TIME_WITH_SYS_TIME 22 #ifdef TIME_WITH_SYS_TIME
25 #include <sys/time.h> 23 #include <sys/time.h>
26 #include <time.h> 24 #include <time.h>
27 #else 25 #else