# HG changeset patch # User Dave Love # Date 1008691022 0 # Node ID c8cfb8893fac7344658e219388a6dc555b877f57 # Parent e628707667bd641a57294d80e556f70cae6e59a0 Conditionally include various headers. Use "epaths.h", not <../src/epaths.h>. (malloc, realloc) [!HAVE_STDLIB_H]: Prototype. diff -r e628707667bd -r c8cfb8893fac lib-src/yow.c --- 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 #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();