summaryrefslogtreecommitdiff
path: root/lib-src/wakeup.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-07-18 06:13:07 +0000
committerJim Blandy <jimb@redhat.com>1993-07-18 06:13:07 +0000
commitaf40bbfa99a32434416278aff411cd2a2dd05db4 (patch)
tree164c1bd518b7668fc7cac100ba4ebc649a43e622 /lib-src/wakeup.c
parent52cc7c59b551f526786313b011841e45c0bd849a (diff)
downloademacs-af40bbfa99a32434416278aff411cd2a2dd05db4.tar.gz
* 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/wakeup.c')
-rw-r--r--lib-src/wakeup.c13
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 @@
/* Program to produce output at regular intervals. */
+#include "config.h"
+
#include <stdio.h>
-#include <time.h>
#include <sys/types.h>
+
+#ifdef TIME_WITH_SYS_TIME
#include <sys/time.h>
+#include <time.h>
+#else
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#else
+#include <time.h>
+#endif
+#endif
struct tm *localtime ();