summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/rpl/files/rpl-1.4.0-gcc4.patch')
-rw-r--r--app-text/rpl/files/rpl-1.4.0-gcc4.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/app-text/rpl/files/rpl-1.4.0-gcc4.patch b/app-text/rpl/files/rpl-1.4.0-gcc4.patch
new file mode 100644
index 000000000000..6cfb8c62627d
--- /dev/null
+++ b/app-text/rpl/files/rpl-1.4.0-gcc4.patch
@@ -0,0 +1,19 @@
+diff -Naur rpl-1.4.0-clean/src/replace.h rpl-1.4.0/src/replace.h
+--- rpl-1.4.0-clean/src/replace.h 2002-07-24 10:41:45.000000000 -0500
++++ rpl-1.4.0/src/replace.h 2006-02-19 16:38:32.000000000 -0500
+@@ -77,7 +77,7 @@
+
+ /* This is a simple macro to call malloc() and die if it returns null */
+ #define MALLOC_FAIL_STRING ("\n" PACKAGE " Unable to allocate memory!")
+-#define MALLOC_AND_CHECK( x, y ) (void*)(x)=malloc((y));if(x==NULL){fprintf(stderr,"\n%s --> %s:%d\n", MALLOC_FAIL_STRING, __FILE__, __LINE__ );exit(EX_OSERR);}
++#define MALLOC_AND_CHECK( x, y ) (x)=malloc((y));if(x==NULL){fprintf(stderr,"\n%s --> %s:%d\n", MALLOC_FAIL_STRING, __FILE__, __LINE__ );exit(EX_OSERR);}
+
+
+ /* Function Prototypes */
+@@ -90,4 +90,4 @@
+
+ static void EchoFeedback(int, int, int, char*);
+
+-static void SetPerms(struct stat, int, int, char*, int* );
+\ No newline at end of file
++static void SetPerms(struct stat, int, int, char*, int* );