summaryrefslogtreecommitdiff
path: root/sysdeps/gnu/errlist.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-11-10 09:38:27 +0000
committerJakub Jelinek <jakub@redhat.com>2004-11-10 09:38:27 +0000
commit9abf55c24c31a53d987ebf53e46cbd64eab417bc (patch)
tree15f35d8593a250d25b17a593b73a451ed20d0bd9 /sysdeps/gnu/errlist.c
parent3504bb650f48534549bbd0313dc15fa71455e302 (diff)
Diffstat (limited to 'sysdeps/gnu/errlist.c')
-rw-r--r--sysdeps/gnu/errlist.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sysdeps/gnu/errlist.c b/sysdeps/gnu/errlist.c
index 8131038047..9ae6ec3c1d 100644
--- a/sysdeps/gnu/errlist.c
+++ b/sysdeps/gnu/errlist.c
@@ -7,7 +7,15 @@
# define ERR_REMAP(n) n
#endif
-const char *const _sys_errlist_internal[] =
+#if !defined EMIT_ERR_MAX && !defined ERRLIST_NO_COMPAT
+# include <errlist-compat.h>
+#endif
+#ifdef ERR_MAX
+# define ERRLIST_SIZE ERR_MAX + 1
+#else
+# define ERRLIST_SIZE
+#endif
+const char *const _sys_errlist_internal[ERRLIST_SIZE] =
{
[0] = N_("Success"),
#ifdef EPERM