Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
441:72a7cfa4a488 | 442:abe6d1db359e |
---|---|
2 | 2 |
3 #include <config.h> | 3 #include <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 | |
7 #include <unistd.h> | 8 #include <unistd.h> |
9 #endif | |
8 #endif | 10 #endif |
9 | 11 |
10 #include <stdio.h> | 12 #include <stdio.h> |
11 #include <sys/types.h> | 13 #include <sys/types.h> |
12 | 14 |
13 #ifdef WINDOWSNT | 15 #ifdef WIN32_NATIVE |
14 #define WIN32_LEAN_AND_MEAN | 16 #define WIN32_LEAN_AND_MEAN |
15 #include <windows.h> | 17 #include <windows.h> |
16 #undef sleep | 18 #undef sleep |
17 #define sleep(t) Sleep ((t) * 1000) | 19 #define sleep(t) Sleep ((t) * 1000) |
18 #define getppid() (0) | 20 #define getppid() (0) |
19 #undef HAVE_SYS_TIME_H | 21 #undef HAVE_SYS_TIME_H |
20 #endif /* WINDOWSNT */ | 22 #endif /* WIN32_NATIVE */ |
21 | 23 |
22 #ifdef TIME_WITH_SYS_TIME | 24 #ifdef TIME_WITH_SYS_TIME |
23 #include <sys/time.h> | 25 #include <sys/time.h> |
24 #include <time.h> | 26 #include <time.h> |
25 #else | 27 #else |