aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/syscall/wait.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2019-02-12 21:29:52 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-02-12 21:29:52 +0000
commit2faf2a305d7d95a9ca618ef08c774d57a521e9fa (patch)
treea08ac33003ff8830f2a848ddc03eaeaebcff5462 /libgo/go/syscall/wait.c
parentd950b005f993d092dd6e0cefbaf1ecfaf6765cb4 (diff)
downloadgcc-2faf2a305d7d95a9ca618ef08c774d57a521e9fa.zip
gcc-2faf2a305d7d95a9ca618ef08c774d57a521e9fa.tar.gz
gcc-2faf2a305d7d95a9ca618ef08c774d57a521e9fa.tar.bz2
syscall: don't assume that WIFCONTINUED is defined
It's not defined on the Hurd. Reviewed-on: https://go-review.googlesource.com/c/161963 From-SVN: r268828
Diffstat (limited to 'libgo/go/syscall/wait.c')
-rw-r--r--libgo/go/syscall/wait.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgo/go/syscall/wait.c b/libgo/go/syscall/wait.c
index c0c5cca..9555a41 100644
--- a/libgo/go/syscall/wait.c
+++ b/libgo/go/syscall/wait.c
@@ -16,6 +16,10 @@
#define WCOREDUMP(status) (((status) & 0200) != 0)
#endif
+#ifndef WIFCONTINUED
+#define WIFCONTINUED(x) 0
+#endif
+
extern _Bool Exited (uint32_t *w)
__asm__ (GOSYM_PREFIX "syscall.WaitStatus.Exited");