From eb1ed03dafcd9a7ea6e95b958413342e20b35968 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 5 May 2014 13:06:18 -0700 Subject: Fix -Wundef issues in generated errlist.c. --- sysdeps/gnu/errlist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysdeps/gnu/errlist.c') diff --git a/sysdeps/gnu/errlist.c b/sysdeps/gnu/errlist.c index 2303453..8381434 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 #endif -- cgit v1.1