summaryrefslogtreecommitdiff
path: root/x11/hanterm/patches/patch-screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11/hanterm/patches/patch-screen.c')
-rw-r--r--x11/hanterm/patches/patch-screen.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/x11/hanterm/patches/patch-screen.c b/x11/hanterm/patches/patch-screen.c
new file mode 100644
index 00000000000..455f13ef17e
--- /dev/null
+++ b/x11/hanterm/patches/patch-screen.c
@@ -0,0 +1,27 @@
+$NetBSD: patch-screen.c,v 1.1 2013/11/24 05:53:52 dholland Exp $
+
+- use standard headers
+- don't declare own calloc/malloc/realloc/free
+
+--- screen.c~ 1999-05-31 17:01:47.000000000 +0000
++++ screen.c
+@@ -32,6 +32,7 @@
+ #include "data.h"
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <signal.h>
+
+ #if defined(SVR4) || defined(sco)
+@@ -49,11 +50,6 @@
+ extern void HideCursor();
+ extern void ResizeScrollBar();
+
+-#if !defined(linux) || (__GNUC__ < 2)
+-extern Char *calloc(), *malloc(), *realloc();
+-#endif
+-extern void free();
+-
+ ScrnBuf Allocate (nrow, ncol, addr)
+ /*
+ allocates memory for a 2-dimensional array of chars and returns a pointer