diff options
| author | Ian Lance Taylor <iant@golang.org> | 2022-11-30 09:36:52 -0800 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2022-11-30 12:21:15 -0800 |
| commit | 91607eba8fe49c064192122ec60a3e03dd8f2515 (patch) | |
| tree | fa64e757cd812cbc2327d75af8ecfb55e0867fa4 /libgo | |
| parent | b2aa75ded65f8c0293d73371e1660e7aeebb1eb6 (diff) | |
runtime: force XSI strerror on hurd
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/454275
Diffstat (limited to 'libgo')
| -rw-r--r-- | libgo/runtime/go-strerror.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/runtime/go-strerror.c b/libgo/runtime/go-strerror.c index 13d1d91df84..8ff5ffbdfec 100644 --- a/libgo/runtime/go-strerror.c +++ b/libgo/runtime/go-strerror.c @@ -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> |
