]> code.delx.au - gnu-emacs/commitdiff
* wakeup.c: Use CPP tangle from autoconf manual to #include the
authorJim Blandy <jimb@redhat.com>
Sun, 18 Jul 1993 06:13:07 +0000 (06:13 +0000)
committerJim Blandy <jimb@redhat.com>
Sun, 18 Jul 1993 06:13:07 +0000 (06:13 +0000)
correct combination of <time.h> and <sys/time.h>.

lib-src/wakeup.c

index 07c324d12101660cbc5e3c79e7478b5843f51e66..e481bee8324fd6d57237403927b1f7f3f5a062a3 100644 (file)
@@ -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 ();