From: Dave Love Date: Tue, 18 Dec 2001 15:57:02 +0000 (+0000) Subject: Conditionally include various headers. Use "epaths.h", X-Git-Tag: ttn-vms-21-2-B4~17641 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=076a0ff7b1814537bc7c8ff89dbc781b9ac54898;p=emacs.git Conditionally include various headers. Use "epaths.h", not <../src/epaths.h>. (malloc, realloc) [!HAVE_STDLIB_H]: Prototype. --- diff --git a/lib-src/yow.c b/lib-src/yow.c index 4efe8153415..e141b9141e2 100644 --- a/lib-src/yow.c +++ b/lib-src/yow.c @@ -10,9 +10,26 @@ * With dynamic memory allocation. */ +#include "config.h" #include #include -#include <../src/epaths.h> /* For PATH_DATA. */ +#ifdef HAVE_STRING_H +#include +#endif +#ifdef TIME_WITH_SYS_TIME +#include +#include +#else +#ifdef HAVE_SYS_TIME_H +#include +#else +#include +#endif +#endif +#ifdef HAVE_UNISTD_H +#include +#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();