diff options
author | Michael Landin <mich@FreeBSD.org> | 2006-12-19 15:01:54 +0000 |
---|---|---|
committer | Michael Landin <mich@FreeBSD.org> | 2006-12-19 15:01:54 +0000 |
commit | 63c2aebd61b0c3d15c64cee9fcd0d670dca54068 (patch) | |
tree | d55f967eb9859871ba9034e667f38fa606a82975 /misc | |
parent | 3a9b542a22ee91ef31c5f9d69b47cd8f9b61a0f0 (diff) | |
download | ports-63c2aebd61b0c3d15c64cee9fcd0d670dca54068.tar.gz ports-63c2aebd61b0c3d15c64cee9fcd0d670dca54068.zip |
- Fix compile with gcc4x
Notes
Notes:
svn path=/head/; revision=180160
Diffstat (limited to 'misc')
-rw-r--r-- | misc/rpl/files/patch-src_replace.h | 23 |
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* ); ++ |