diff options
Diffstat (limited to 'sysdeps/gnu')
-rw-r--r-- | sysdeps/gnu/errlist.awk | 3 | ||||
-rw-r--r-- | sysdeps/gnu/errlist.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/gnu/errlist.awk b/sysdeps/gnu/errlist.awk index 654984b221..7fa53053ae 100644 --- a/sysdeps/gnu/errlist.awk +++ b/sysdeps/gnu/errlist.awk @@ -52,6 +52,7 @@ BEGIN { print "#ifdef ERR_MAX"; print "# define ERRLIST_SIZE ERR_MAX + 1"; print "#else" + print "# define ERR_MAX 0"; print "# define ERRLIST_SIZE"; print "#endif"; @@ -109,7 +110,7 @@ END { print " (sizeof _sys_errlist_internal / sizeof _sys_errlist_internal [0])"; print "const int _sys_nerr_internal = NERR;" print ""; - print "#if !defined NOT_IN_libc && !ERRLIST_NO_COMPAT"; + print "#if !defined NOT_IN_libc && !defined ERRLIST_NO_COMPAT"; print "# include <errlist-compat.c>"; print "#endif"; print ""; diff --git a/sysdeps/gnu/errlist.c b/sysdeps/gnu/errlist.c index 2303453b58..8381434c2c 100644 --- a/sysdeps/gnu/errlist.c +++ b/sysdeps/gnu/errlist.c @@ -13,6 +13,7 @@ #ifdef ERR_MAX # define ERRLIST_SIZE ERR_MAX + 1 #else +# define ERR_MAX 0 # define ERRLIST_SIZE #endif const char *const _sys_errlist_internal[ERRLIST_SIZE] = @@ -1479,7 +1480,7 @@ TRANS error; @pxref{Cancel AIO Operations}. */ (sizeof _sys_errlist_internal / sizeof _sys_errlist_internal [0]) const int _sys_nerr_internal = NERR; -#if !defined NOT_IN_libc && !ERRLIST_NO_COMPAT +#if !defined NOT_IN_libc && !defined ERRLIST_NO_COMPAT # include <errlist-compat.c> #endif |