diff options
Diffstat (limited to 'graphics/urt/files/patch-lib-rle_open_f.c')
-rw-r--r-- | graphics/urt/files/patch-lib-rle_open_f.c | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/graphics/urt/files/patch-lib-rle_open_f.c b/graphics/urt/files/patch-lib-rle_open_f.c index 516da13..1743693 100644 --- a/graphics/urt/files/patch-lib-rle_open_f.c +++ b/graphics/urt/files/patch-lib-rle_open_f.c @@ -1,6 +1,16 @@ ---- lib/rle_open_f.c.orig Thu May 13 16:28:51 1993 -+++ lib/rle_open_f.c Thu Nov 29 23:38:49 2007 -@@ -56,6 +56,7 @@ +--- lib/rle_open_f.c.orig 1993-05-14 06:28:51.000000000 +0900 ++++ lib/rle_open_f.c 2012-10-15 22:07:34.000000000 +0900 +@@ -10,6 +10,9 @@ + + #include "rle_config.h" + #include <stdio.h> ++#include <string.h> ++#include <sys/types.h> ++#include <unistd.h> + + #ifndef NO_OPEN_PIPES + /* Need to have a SIGCLD signal catcher. */ +@@ -56,6 +59,7 @@ CONST_DECL char *err_str; register char *cp; char *combuf; @@ -8,7 +18,7 @@ #ifdef STDIO_NEEDS_BINARY char mode_string[32]; /* Should be enough. */ -@@ -150,7 +151,8 @@ +@@ -150,7 +154,8 @@ else if ( cp > file_name && *cp == '.' && *(cp + 1) == 'Z' ) { int thepid; /* PID from my_popen. */ @@ -18,7 +28,7 @@ if ( combuf == NULL ) { err_str = "%s: out of memory opening (compressed) %s for %s"; -@@ -158,11 +160,11 @@ +@@ -158,11 +163,11 @@ } if ( *mode == 'w' ) @@ -33,7 +43,7 @@ fp = my_popen( combuf, mode, &thepid ); free( combuf ); -@@ -256,7 +258,6 @@ +@@ -256,7 +261,6 @@ int pipefd[2]; int i; char *argv[4]; |