From 076a0ff7b1814537bc7c8ff89dbc781b9ac54898 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Tue, 18 Dec 2001 15:57:02 +0000 Subject: [PATCH] Conditionally include various headers. Use "epaths.h", not <../src/epaths.h>. (malloc, realloc) [!HAVE_STDLIB_H]: Prototype. --- lib-src/yow.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) 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(); -- 2.39.5