blob: 74238e82a2338767e5f4be3a6d35f0c751838b15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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");
|