diff options
Diffstat (limited to 'lang/gcc5/patches/patch-gcc_lto_lto.c')
-rw-r--r-- | lang/gcc5/patches/patch-gcc_lto_lto.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lang/gcc5/patches/patch-gcc_lto_lto.c b/lang/gcc5/patches/patch-gcc_lto_lto.c new file mode 100644 index 00000000000..74238e82a23 --- /dev/null +++ b/lang/gcc5/patches/patch-gcc_lto_lto.c @@ -0,0 +1,19 @@ +$NetBSD: patch-gcc_lto_lto.c,v 1.1 2015/07/16 12:03:36 ryoon Exp $ + +--- gcc/lto/lto.c.orig 2015-01-30 16:15:00.000000000 +0000 ++++ gcc/lto/lto.c +@@ -2495,7 +2495,13 @@ wait_for_child () + #ifndef WCONTINUED + #define WCONTINUED 0 + #endif +- int w = waitpid (0, &status, WUNTRACED | WCONTINUED); ++ ++#if defined(__NetBSD__) ++ int w = waitpid(0, &status, WUNTRACED | WALLSIG); ++#else ++ int w = waitpid(0, &status, WUNTRACED | WCONTINUED); ++#endif ++ + if (w == -1) + fatal_error (input_location, "waitpid failed"); + |