diff options
author | Roland McGrath <roland@hack.frob.com> | 2014-05-05 13:06:18 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2014-05-05 13:06:18 -0700 |
commit | eb1ed03dafcd9a7ea6e95b958413342e20b35968 (patch) | |
tree | a13ab9b7d218809fa20c64c2e21f5b3c1771819b /sysdeps/gnu/errlist.awk | |
parent | 19c4bec0f43599eecc2f32de96ae179cd7d64053 (diff) | |
download | glibc-eb1ed03dafcd9a7ea6e95b958413342e20b35968.tar.gz glibc-eb1ed03dafcd9a7ea6e95b958413342e20b35968.tar.xz glibc-eb1ed03dafcd9a7ea6e95b958413342e20b35968.zip |
Fix -Wundef issues in generated errlist.c.
Diffstat (limited to 'sysdeps/gnu/errlist.awk')
-rw-r--r-- | sysdeps/gnu/errlist.awk | 3 |
1 files changed, 2 insertions, 1 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 ""; |