From 6009fb0d1b217844b07c5b31a6668039afdd5a39 Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 7 Oct 2005 16:38:41 +0000 Subject: Include stdlib.h for malloc and friends, fix the conditional to only define them if we are on pre-ANSI C. --- textproc/yodl/distinfo | 3 ++- textproc/yodl/patches/patch-ac | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 textproc/yodl/patches/patch-ac (limited to 'textproc/yodl') diff --git a/textproc/yodl/distinfo b/textproc/yodl/distinfo index 97d27732ad2..2b06b168c95 100644 --- a/textproc/yodl/distinfo +++ b/textproc/yodl/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.5 2005/02/24 14:48:51 agc Exp $ +$NetBSD: distinfo,v 1.6 2005/10/07 16:38:41 joerg Exp $ SHA1 (yodl-1.31.18.tar.gz) = 16f041cf8851027f96e5af82d0ac4f85a425553a RMD160 (yodl-1.31.18.tar.gz) = 71e42d72368a5850de89353880050feb026c58e0 Size (yodl-1.31.18.tar.gz) = 320053 bytes SHA1 (patch-aa) = ecb2e2f61d43e69b685b2821d9601e82cb0647ca SHA1 (patch-ab) = 70ccc5bab03a079935507d59a0e2f4a93b27a4ab +SHA1 (patch-ac) = bfee8fcf774dcc4f1f16eb4e65da426a00d2c012 diff --git a/textproc/yodl/patches/patch-ac b/textproc/yodl/patches/patch-ac new file mode 100644 index 00000000000..f6fe7705234 --- /dev/null +++ b/textproc/yodl/patches/patch-ac @@ -0,0 +1,21 @@ +$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 ++#include + #include + #include "config.h" + +@@ -16,7 +17,7 @@ + + #if HAVE_MALLOC_H + # include +-#elif defined STDC_HEADERS ++#elif !defined STDC_HEADERS + extern void free PARAMS ((char *)); + extern char *malloc PARAMS ((int)); + extern char *realloc PARAMS ((char*, int)); -- cgit v1.2.3