diff options
Diffstat (limited to 'x11/xp/patches/patch-readfile.c')
-rw-r--r-- | x11/xp/patches/patch-readfile.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/x11/xp/patches/patch-readfile.c b/x11/xp/patches/patch-readfile.c new file mode 100644 index 00000000000..b97ae52ec1e --- /dev/null +++ b/x11/xp/patches/patch-readfile.c @@ -0,0 +1,16 @@ +$NetBSD: patch-readfile.c,v 1.1 2016/03/09 06:52:02 tnn Exp $ + +use proper malloc prototypes + +--- readfile.c.orig 1999-02-11 10:34:04.000000000 +0000 ++++ readfile.c +@@ -34,8 +34,7 @@ + #include <X11/Xos.h> /* get types.h */ + #include <sys/stat.h> + +-extern char *malloc(); +-extern char *realloc(); ++#include <stdlib.h> + + /* + * readinlump - read data from a file into a single buffer in 1 go |