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

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