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

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