Mercurial > emacs
diff lib-src/=wakeup.c @ 4127:d253c8a4b7e5
* wakeup.c: Use CPP tangle from autoconf manual to #include the
correct combination of <time.h> and <sys/time.h>.
| author | Jim Blandy <jimb@redhat.com> |
|---|---|
| date | Sun, 18 Jul 1993 06:13:07 +0000 |
| parents | 0810187da5d9 |
| children | 1fc792473491 |
line wrap: on
line diff
--- a/lib-src/=wakeup.c Sun Jul 18 06:12:49 1993 +0000 +++ b/lib-src/=wakeup.c Sun Jul 18 06:13:07 1993 +0000 @@ -1,9 +1,20 @@ /* Program to produce output at regular intervals. */ +#include "config.h" + #include <stdio.h> +#include <sys/types.h> + +#ifdef TIME_WITH_SYS_TIME +#include <sys/time.h> #include <time.h> -#include <sys/types.h> +#else +#ifdef HAVE_SYS_TIME_H #include <sys/time.h> +#else +#include <time.h> +#endif +#endif struct tm *localtime ();
