commit | c34754bd9adf5496c4c26257eaa50793553c11e8 | [log] [tgz] |
---|---|---|
author | Matthieu Sarter <matthieu.sarter.external@atos.net> | Wed Mar 22 17:57:01 2017 +0100 |
committer | Ian Lance Taylor <iant@golang.org> | Thu Mar 23 17:29:46 2017 +0000 |
tree | 7e7e9928b755021d947661c5e624b8e49aa2544f | |
parent | 20991c32671a183ec859b4f285df37fdd4634247 [diff] |
sycall: WCOREDUMP macro is not defined on AIX Issue golang/go#19200 Change-Id: Icbbcb53aa2a34aba52a1132b486e805551f1e25e Reviewed-on: https://go-review.googlesource.com/38363 Reviewed-by: Ian Lance Taylor <iant@golang.org>
diff --git a/libgo/go/syscall/wait.c b/libgo/go/syscall/wait.c index 8c3b53f..a50f7d6 100644 --- a/libgo/go/syscall/wait.c +++ b/libgo/go/syscall/wait.c
@@ -12,6 +12,10 @@ #include "runtime.h" +#ifndef WCOREDUMP +#define WCOREDUMP(status) (((status) & 0200) != 0) +#endif + extern _Bool Exited (uint32_t *w) __asm__ (GOSYM_PREFIX "syscall.Exited.N18_syscall.WaitStatus");