summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-03-22 15:43:28 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-03-22 15:43:28 +0000
commit86ea254301f7e2fcd860c4072c0a938b4e048d42 (patch)
tree135b8ce08c1b730a8f4fe2a6fdaba4531b3ae0b8
parent60d4611c5dc1e71df0eb30dff57fcd805ec0b385 (diff)
Comment __USE_UNIX98, not needed, add __glibc_strerror_r prototype for non-GNU
-rw-r--r--include/libc-internal.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/libc-internal.h b/include/libc-internal.h
index c7838b51e..80bac2362 100644
--- a/include/libc-internal.h
+++ b/include/libc-internal.h
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
/* --- this is added to integrate linuxthreads */
-#define __USE_UNIX98 1
+/*#define __USE_UNIX98 1*/
#ifndef __ASSEMBLER__
# ifdef IS_IN_libc
@@ -44,7 +44,11 @@
# 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);
+#else
+extern char *__glibc_strerror_r (int __errnum, char *__buf, size_t __buflen);
+#endif
/* #include <pthread.h> */
# ifndef __UCLIBC_HAS_THREADS__