Blame SOURCES/glibc-rh1505492-undef-21.patch

00db10
commit eb1ed03dafcd9a7ea6e95b958413342e20b35968
00db10
Author: Roland McGrath <roland@hack.frob.com>
00db10
Date:   Mon May 5 13:06:18 2014 -0700
00db10
00db10
    Fix -Wundef issues in generated errlist.c.
00db10
00db10
Conflicts:
00db10
	sysdeps/gnu/errlist.awk
00db10
	sysdeps/gnu/errlist.c
00db10
00db10
Due to IS_IN backport in glibc-rh1256317-2.patch.
00db10
00db10
diff --git a/sysdeps/gnu/errlist.awk b/sysdeps/gnu/errlist.awk
00db10
index 8bad43199cd9e1c4..ebae2a6398c2697e 100644
00db10
--- a/sysdeps/gnu/errlist.awk
00db10
+++ b/sysdeps/gnu/errlist.awk
00db10
@@ -52,6 +52,7 @@ BEGIN {
00db10
     print "#ifdef ERR_MAX";
00db10
     print "# define ERRLIST_SIZE ERR_MAX + 1";
00db10
     print "#else"
00db10
+    print "# define ERR_MAX 0";
00db10
     print "# define ERRLIST_SIZE";
00db10
     print "#endif";
00db10
 
00db10
@@ -109,7 +110,7 @@ END {
00db10
   print "  (sizeof _sys_errlist_internal / sizeof _sys_errlist_internal [0])";
00db10
   print "const int _sys_nerr_internal = NERR;"
00db10
   print "";
00db10
-  print "#if IS_IN (libc) && !ERRLIST_NO_COMPAT";
00db10
+  print "#if IS_IN (libc) && !defined ERRLIST_NO_COMPAT";
00db10
   print "# include <errlist-compat.c>";
00db10
   print "#endif";
00db10
   print "";
00db10
diff --git a/sysdeps/gnu/errlist.c b/sysdeps/gnu/errlist.c
00db10
index 278f7998b592e92a..4551249d723f47a6 100644
00db10
--- a/sysdeps/gnu/errlist.c
00db10
+++ b/sysdeps/gnu/errlist.c
00db10
@@ -13,6 +13,7 @@
00db10
 #ifdef ERR_MAX
00db10
 # define ERRLIST_SIZE ERR_MAX + 1
00db10
 #else
00db10
+# define ERR_MAX 0
00db10
 # define ERRLIST_SIZE
00db10
 #endif
00db10
 const char *const _sys_errlist_internal[ERRLIST_SIZE] =
00db10
@@ -1479,7 +1480,7 @@ TRANS error; @pxref{Cancel AIO Operations}. */
00db10
   (sizeof _sys_errlist_internal / sizeof _sys_errlist_internal [0])
00db10
 const int _sys_nerr_internal = NERR;
00db10
 
00db10
-#if IS_IN (libc) && !ERRLIST_NO_COMPAT
00db10
+#if IS_IN (libc) && !defined ERRLIST_NO_COMPAT
00db10
 # include <errlist-compat.c>
00db10
 #endif
00db10