Mercurial > emacs
changeset 42131:c8cfb8893fac
Conditionally include various headers. Use "epaths.h",
not <../src/epaths.h>.
(malloc, realloc) [!HAVE_STDLIB_H]: Prototype.
author | Dave Love <fx@gnu.org> |
---|---|
date | Tue, 18 Dec 2001 15:57:02 +0000 |
parents | e628707667bd |
children | 398fa38cf321 |
files | lib-src/yow.c |
diffstat | 1 files changed, 21 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/yow.c Tue Dec 18 15:53:57 2001 +0000 +++ b/lib-src/yow.c Tue Dec 18 15:57:02 2001 +0000 @@ -10,9 +10,26 @@ * With dynamic memory allocation. */ +#include "config.h" #include <stdio.h> #include <ctype.h> -#include <../src/epaths.h> /* For PATH_DATA. */ +#ifdef HAVE_STRING_H +#include <string.h> +#endif +#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 +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif +#include "epaths.h" /* For PATH_DATA. */ #define BUFSIZE 80 #define SEP '\0' @@ -33,7 +50,9 @@ &res;}) #endif -char *malloc(), *realloc(); +#ifndef HAVE_STDLIB_H +char *malloc __P ((size_t size))), *realloc __P ((POINTER_TYPE *ptr, size_t size)); +#endif void yow(); void setup_yow();