diff options
author | Jim Blandy <jimb@redhat.com> | 1993-07-18 06:13:07 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1993-07-18 06:13:07 +0000 |
commit | b6a782a3c50f0dfdca05fed362e8e6ea75fecb00 (patch) | |
tree | 886c56480f6c41cca84b01bde9297031090c9413 /lib-src/=wakeup.c | |
parent | 3556aff6a0a679e95889d8f95fe10662255a4e0f (diff) | |
download | emacs-b6a782a3c50f0dfdca05fed362e8e6ea75fecb00.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.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 @@ /* 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 (); |