From 90ef2e6a218ae706b87ea499915d4f0e00868b55 Mon Sep 17 00:00:00 2001 From: ian Date: Tue, 12 Feb 2019 21:29:52 +0000 Subject: [PATCH] syscall: don't assume that WIFCONTINUED is defined It's not defined on the Hurd. Reviewed-on: https://go-review.googlesource.com/c/161963 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268828 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/go/gofrontend/MERGE | 2 +- libgo/go/syscall/wait.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 1339d9fbb234..3ab1f29d31f7 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -fc8aa5a46433d6ecba9fd1cd0bee4290c314ca06 +6d03c4c8ca320042bd550d44c0f25575c5311ac2 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/libgo/go/syscall/wait.c b/libgo/go/syscall/wait.c index c0c5cca39af5..9555a41b9865 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"); -- 2.39.5