runtime: force XSI strerror on hurd

Change-Id: Icb130bb38daac1a215309f1208fa42d02192381c
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/454275
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Bypass: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Ian Lance Taylor 2022-11-30 09:36:52 -08:00
Родитель fef6aa3c16
Коммит 1c5bfd5713
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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>