diff options
author | tnn <tnn@pkgsrc.org> | 2016-03-09 06:52:02 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2016-03-09 06:52:02 +0000 |
commit | 0d860c770cdd4a324f71f8064c5b2a1966a2c419 (patch) | |
tree | 1c371ca21d023c9bb274093ecbd259f22635ccf1 /x11/xp/patches/patch-readfile.c | |
parent | 3b16d111648f0370f194ec31fbfc27f281fb6b5a (diff) | |
download | pkgsrc-0d860c770cdd4a324f71f8064c5b2a1966a2c419.tar.gz |
fix build on Linux
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 |