summaryrefslogtreecommitdiff
path: root/net/icsi-finger/patches/patch-lib_util_c
diff options
context:
space:
mode:
Diffstat (limited to 'net/icsi-finger/patches/patch-lib_util_c')
-rw-r--r--net/icsi-finger/patches/patch-lib_util_c23
1 files changed, 23 insertions, 0 deletions
diff --git a/net/icsi-finger/patches/patch-lib_util_c b/net/icsi-finger/patches/patch-lib_util_c
new file mode 100644
index 00000000000..232d983cc04
--- /dev/null
+++ b/net/icsi-finger/patches/patch-lib_util_c
@@ -0,0 +1,23 @@
+$NetBSD: patch-lib_util_c,v 1.1 2011/11/15 00:11:07 dholland Exp $
+
+- use standard headers
+
+--- lib/util.c~ 1997-10-19 00:06:56.000000000 +0000
++++ lib/util.c
+@@ -26,6 +26,7 @@ static char *rcsid = "$Id: util.c,v 1.27
+ #endif
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <ctype.h>
+ #include <sys/types.h>
+@@ -239,8 +240,6 @@ memory_error_and_abort (nbytes)
+ handle_error(FATAL, "(re)alloc error. Cannot allocate %d bytes.", nbytes);
+ }
+
+-extern char *malloc(), *realloc();
+-
+ void *
+ xmalloc (nbytes)
+ int nbytes;