Skip to content
Snippets Groups Projects
Commit 91607eba authored by Ian Lance Taylor's avatar Ian Lance Taylor
Browse files

runtime: force XSI strerror on hurd

parent b2aa75de
No related branches found
No related tags found
No related merge requests found
fef6aa3c1678cdbe7dca454b2cebb369d8ba81bf 1c5bfd57131b68b91d8400bb017f35d416f7aa7b
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the gofrontend repository. merge done from the gofrontend repository.
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
exists to selectively undefine it and provides an alias to the exists to selectively undefine it and provides an alias to the
XSI-compliant version of strerror_r(3). */ XSI-compliant version of strerror_r(3). */
#ifdef __linux__ #if defined(__linux__) || defined(__gnu_hurd__)
/* Force selection of XSI-compliant strerror_r by glibc. */ /* Force selection of XSI-compliant strerror_r by glibc. */
#undef XOPEN_SOURCE #undef XOPEN_SOURCE
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#define _POSIX_C_SOURCE 200112L #define _POSIX_C_SOURCE 200112L
#undef _GNU_SOURCE #undef _GNU_SOURCE
#endif /* __linux__ */ #endif /* defined(__linux__) || defined(__gnu_hurd__) */
#include <string.h> #include <string.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment