]> gcc.gnu.org Git - gcc.git/commitdiff
runtime: force XSI strerror on hurd
authorIan Lance Taylor <iant@golang.org>
Wed, 30 Nov 2022 17:36:52 +0000 (09:36 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 30 Nov 2022 20:21:15 +0000 (12:21 -0800)
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/454275

gcc/go/gofrontend/MERGE
libgo/runtime/go-strerror.c

index 984d8324004e25064f98541c2fb1cf143a4be56f..a26f779557d334c1923fd1a69e476bc8cdc634df 100644 (file)
@@ -1,4 +1,4 @@
-fef6aa3c1678cdbe7dca454b2cebb369d8ba81bf
+1c5bfd57131b68b91d8400bb017f35d416f7aa7b
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index 13d1d91df846ca1cc4c6954f7a9c16ac07adca96..8ff5ffbdfecbcd496ec10cb989ee532e3df43532 100644 (file)
@@ -12,7 +12,7 @@
    exists to selectively undefine it and provides an alias to the
    XSI-compliant version of strerror_r(3).  */
 
-#ifdef __linux__
+#if defined(__linux__) || defined(__gnu_hurd__)
 
 /* Force selection of XSI-compliant strerror_r by glibc.  */
 #undef XOPEN_SOURCE
@@ -21,7 +21,7 @@
 #define _POSIX_C_SOURCE 200112L
 #undef _GNU_SOURCE
 
-#endif /* __linux__ */
+#endif /* defined(__linux__) || defined(__gnu_hurd__) */
 
 #include <string.h>
 
This page took 0.064029 seconds and 5 git commands to generate.