Mercurial > emacs
changeset 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 | 9a906e5f9b28 |
children | cd2afb94d892 |
files | lib-src/=wakeup.c |
diffstat | 1 files changed, 12 insertions(+), 1 deletions(-) [+] |
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 ();