summaryrefslogtreecommitdiff
path: root/include/libc-internal.h
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-18 23:21:15 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:27 +0200
commit938467ad2d9972c8d7ddcbde5dd9fe634da1ca3b (patch)
tree8c584aa253eaf9b37b29ba52292c136b3932eb98 /include/libc-internal.h
parent145a5962d8b6f39f8cbe4d616a5e543307aa2aac (diff)
*_strerror_r.c: keep all occurences in sync with string.h
libc-internal.h: this has to provide the reversed case of what string.h defines. Accomodate for later possibility to compile without _GNU_SOURCE defined Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include/libc-internal.h')
-rw-r--r--include/libc-internal.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/libc-internal.h b/include/libc-internal.h
index dfd1dfc55..74c35422b 100644
--- a/include/libc-internal.h
+++ b/include/libc-internal.h
@@ -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> */