6009fb0d1b
define them if we are on pre-ANSI C.
21 lines
530 B
Text
21 lines
530 B
Text
$NetBSD: patch-ac,v 1.3 2005/10/07 16:38:41 joerg Exp $
|
|
|
|
--- src/lib/lib.h.orig 1999-11-17 20:08:07.000000000 +0000
|
|
+++ src/lib/lib.h
|
|
@@ -2,6 +2,7 @@
|
|
/* Lib functions for divers programs. */
|
|
|
|
#include <stdio.h>
|
|
+#include <stdlib.h>
|
|
#include <string.h>
|
|
#include "config.h"
|
|
|
|
@@ -16,7 +17,7 @@
|
|
|
|
#if HAVE_MALLOC_H
|
|
# include <malloc.h>
|
|
-#elif defined STDC_HEADERS
|
|
+#elif !defined STDC_HEADERS
|
|
extern void free PARAMS ((char *));
|
|
extern char *malloc PARAMS ((int));
|
|
extern char *realloc PARAMS ((char*, int));
|