aboutsummaryrefslogtreecommitdiffstats
path: root/misc/rpl
diff options
context:
space:
mode:
authormich <mich@FreeBSD.org>2006-12-19 23:01:54 +0800
committermich <mich@FreeBSD.org>2006-12-19 23:01:54 +0800
commitdff295cfe177d8525df8dd2fb57219fd1b42508f (patch)
tree06786fe77fc162db2648bf94161a0d623f70bf5c /misc/rpl
parentf4207e6a342ea17ede525f6f8a709e828c1e6010 (diff)
downloadfreebsd-ports-gnome-dff295cfe177d8525df8dd2fb57219fd1b42508f.tar.gz
freebsd-ports-gnome-dff295cfe177d8525df8dd2fb57219fd1b42508f.tar.zst
freebsd-ports-gnome-dff295cfe177d8525df8dd2fb57219fd1b42508f.zip
- Fix compile with gcc4x
Diffstat (limited to 'misc/rpl')
-rw-r--r--misc/rpl/files/patch-src_replace.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/misc/rpl/files/patch-src_replace.h b/misc/rpl/files/patch-src_replace.h
new file mode 100644
index 000000000000..875a46626545
--- /dev/null
+++ b/misc/rpl/files/patch-src_replace.h
@@ -0,0 +1,23 @@
+
+$FreeBSD$
+
+--- src/replace.h.orig
++++ src/replace.h
+@@ -77,8 +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 +89,5 @@
+
+ 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* );
++