summaryrefslogtreecommitdiff
path: root/graphics/gplot/files/patch-io.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--graphics/gplot/files/patch-io.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/gplot/files/patch-io.c b/graphics/gplot/files/patch-io.c
new file mode 100644
index 000000000000..0b55c427774d
--- /dev/null
+++ b/graphics/gplot/files/patch-io.c
@@ -0,0 +1,20 @@
+--- io.c.orig Thu Jul 18 02:22:05 1991
++++ io.c Sat Jun 16 02:17:10 2007
+@@ -2,6 +2,8 @@
+ /* all rights reserved */
+ /* handle the I/O in this module */
+ #include <stdio.h>
++#include <stdlib.h>
++#include <string.h>
+ #include "defs.h"
+ static int list_io; /* do some listing */
+ #define max_str 128
+@@ -80,7 +82,7 @@
+ static FILE *inptr = NULL, *outptr, *dvifile; /* input and output pointers */
+ #endif
+ static int block_size, record_size;
+-unsigned char *realloc(), *allocate_mem();
++unsigned char *allocate_mem();
+ #define max_b_size 1024
+ static int out_b_size; /* output buffer (how much can use) */
+ static int b_ind = 0; /* index into array */