diff options
| author | Jim Blandy | 1993-07-18 06:13:07 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-07-18 06:13:07 +0000 |
| commit | af40bbfa99a32434416278aff411cd2a2dd05db4 (patch) | |
| tree | 164c1bd518b7668fc7cac100ba4ebc649a43e622 /lib-src | |
| parent | 52cc7c59b551f526786313b011841e45c0bd849a (diff) | |
| download | emacs-af40bbfa99a32434416278aff411cd2a2dd05db4.tar.gz emacs-af40bbfa99a32434416278aff411cd2a2dd05db4.zip | |
* wakeup.c: Use CPP tangle from autoconf manual to #include the
correct combination of <time.h> and <sys/time.h>.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/wakeup.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib-src/wakeup.c b/lib-src/wakeup.c index 07c324d1210..e481bee8324 100644 --- a/lib-src/wakeup.c +++ b/lib-src/wakeup.c | |||
| @@ -1,9 +1,20 @@ | |||
| 1 | /* Program to produce output at regular intervals. */ | 1 | /* Program to produce output at regular intervals. */ |
| 2 | 2 | ||
| 3 | #include "config.h" | ||
| 4 | |||
| 3 | #include <stdio.h> | 5 | #include <stdio.h> |
| 4 | #include <time.h> | ||
| 5 | #include <sys/types.h> | 6 | #include <sys/types.h> |
| 7 | |||
| 8 | #ifdef TIME_WITH_SYS_TIME | ||
| 6 | #include <sys/time.h> | 9 | #include <sys/time.h> |
| 10 | #include <time.h> | ||
| 11 | #else | ||
| 12 | #ifdef HAVE_SYS_TIME_H | ||
| 13 | #include <sys/time.h> | ||
| 14 | #else | ||
| 15 | #include <time.h> | ||
| 16 | #endif | ||
| 17 | #endif | ||
| 7 | 18 | ||
| 8 | struct tm *localtime (); | 19 | struct tm *localtime (); |
| 9 | 20 | ||