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 | af40bbfa99a32434416278aff411cd2a2dd05db4 (patch) | |
tree | 164c1bd518b7668fc7cac100ba4ebc649a43e622 /lib-src/wakeup.c | |
parent | 52cc7c59b551f526786313b011841e45c0bd849a (diff) | |
download | emacs-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.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 (); |