|
@@ -44,12 +44,12 @@
|
|
|
# include <stddef.h>
|
|
|
|
|
|
/* sources are built w/ _GNU_SOURCE, this gets undefined */
|
|
|
-#ifdef __USE_GNU
|
|
|
-extern int __xpg_strerror_r (int __errnum, char *__buf, size_t __buflen);
|
|
|
-libc_hidden_proto(__xpg_strerror_r)
|
|
|
-#else
|
|
|
+#if defined __USE_XOPEN2K && !defined __USE_GNU
|
|
|
extern char *__glibc_strerror_r (int __errnum, char *__buf, size_t __buflen);
|
|
|
libc_hidden_proto(__glibc_strerror_r)
|
|
|
+#else
|
|
|
+extern int __xpg_strerror_r (int __errnum, char *__buf, size_t __buflen);
|
|
|
+libc_hidden_proto(__xpg_strerror_r)
|
|
|
#endif
|
|
|
|
|
|
/* #include <pthread.h> */
|