diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2007-06-20 14:18:39 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2007-06-20 14:18:39 +0000 |
commit | 801fb2ec4cee9afa8ff5f4eae9025c6d21aa2187 (patch) | |
tree | 6e2fe5284f2c541fa612394b1086614f42e27b1a /graphics/gplot/files/patch-io.c | |
parent | - Fix build with gcc 4.2 (diff) |
- Unbreak
- Fix build with gcc 4.2
PR: 113774
Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Notes
Notes:
svn path=/head/; revision=193972
Diffstat (limited to '')
-rw-r--r-- | graphics/gplot/files/patch-io.c | 20 |
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 */ |