summaryrefslogtreecommitdiff
path: root/string/string.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-04-21 17:53:00 +0000
committerUlrich Drepper <drepper@redhat.com>2002-04-21 17:53:00 +0000
commit5e52b9581b3b8758b3eccd7230eb7b527e957103 (patch)
treeb407fb816629ca0750170870a75fc0011cf10042 /string/string.h
parent8bb4f9da7168ac09dc4e07888319b23e5be57502 (diff)
downloadglibc-5e52b9581b3b8758b3eccd7230eb7b527e957103.tar.gz
Declare strerror_r also for XPG6.
Diffstat (limited to 'string/string.h')
-rw-r--r--string/string.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/string/string.h b/string/string.h
index 47e5f18d5d..f3c3e8856d 100644
--- a/string/string.h
+++ b/string/string.h
@@ -227,7 +227,7 @@ extern size_t strnlen (__const char *__string, size_t __maxlen)
/* Return a string describing the meaning of the `errno' code in ERRNUM. */
extern char *strerror (int __errnum) __THROW;
-#ifdef __USE_MISC
+#if defined __USE_XOPEN2K || defined __USE_MISC
/* Reentrant version of `strerror'. If a temporary buffer is required, at
most BUFLEN bytes of BUF will be used. */
extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) __THROW;
@@ -237,7 +237,7 @@ extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) __THROW;
the namespace rules does not allow this. */
extern void __bzero (void *__s, size_t __n) __THROW;
-#if defined __USE_BSD
+#ifdef __USE_BSD
/* Copy N bytes of SRC to DEST (like memmove, but args reversed). */
extern void bcopy (__const void *__src, void *__dest, size_t __n) __THROW;