]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: set _XOPEN_SORUCE_EXTENDED to 1 for aix
authorMichael Pratt <mpratt@google.com>
Tue, 12 Sep 2023 19:33:29 +0000 (15:33 -0400)
committerMichael Pratt <mpratt@google.com>
Tue, 12 Sep 2023 20:41:08 +0000 (20:41 +0000)
aix requires that _XOPEN_SOURCE_EXTENDED is set to a number, not simply
defined.

For #62440.

Change-Id: Iee221d558b5ad5b8dcb874d4d9fdf94593f7d0a1
Reviewed-on: https://go-review.googlesource.com/c/go/+/527797
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>

src/runtime/testdata/testprogcgo/stackswitch.c

index 2395cda56807264538c51b67f7eac9da1672b720..2f79cc28ed95104469f88fe64f409863589939aa 100644 (file)
@@ -7,7 +7,7 @@
 // Required for darwin ucontext.
 #define _XOPEN_SOURCE
 // Required for netbsd stack_t if _XOPEN_SOURCE is set.
-#define _XOPEN_SOURCE_EXTENDED
+#define _XOPEN_SOURCE_EXTENDED 1
 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 
 #include <assert.h>