diff options
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 | ||