diff options
-rw-r--r-- | sys-devel/distcc/files/distcc-gentoo-multilib.patch | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/sys-devel/distcc/files/distcc-gentoo-multilib.patch b/sys-devel/distcc/files/distcc-gentoo-multilib.patch index cc17764fdc5a..af4abf2b06f1 100644 --- a/sys-devel/distcc/files/distcc-gentoo-multilib.patch +++ b/sys-devel/distcc/files/distcc-gentoo-multilib.patch @@ -1,6 +1,6 @@ diff -Naur distcc-2.18.3-vanilla/src/distcc.c distcc-2.18.3/src/distcc.c --- distcc-2.18.3-vanilla/src/distcc.c 2004-10-01 17:47:07.000000000 -0700 -+++ distcc-2.18.3/src/distcc.c 2004-12-28 00:39:10.101746859 -0800 ++++ distcc-2.18.3/src/distcc.c 2004-12-28 01:04:51.017574246 -0800 @@ -135,7 +135,86 @@ signal(SIGHUP, &dcc_client_signalled); } @@ -96,7 +96,21 @@ diff -Naur distcc-2.18.3-vanilla/src/distcc.c distcc-2.18.3/src/distcc.c int ret; dcc_client_catch_signals(); -@@ -200,7 +280,12 @@ +@@ -183,7 +263,12 @@ + goto out; + } + +- dcc_find_compiler(argv, &compiler_args); ++ if(!(newargv = getNewArgv(argv))) { ++ ret = EXIT_OUT_OF_MEMORY; ++ goto out; ++ } ++ dcc_find_compiler(newargv, &compiler_args); ++ free(newargv); + /* compiler_args is now respectively either "cc -c hello.c" or + * "gcc -c hello.c" */ + +@@ -200,7 +285,12 @@ &tweaked_path)) != 0) goto out; |