olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

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

00db10
Fix -Wundef warning.  Addressed upstream as part of this commit:
00db10
00db10
commit 888c679ba406e89d86bdfbde033e307f5af5198f
00db10
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
00db10
Date:   Thu Jul 10 14:24:30 2014 +0530
00db10
00db10
    Sync up error.c with gnulib
00db10
00db10
diff --git a/misc/error.c b/misc/error.c
00db10
index 6fb192da4b38a4f9..3d0156e406fa1539 100644
00db10
--- a/misc/error.c
00db10
+++ b/misc/error.c
00db10
@@ -100,7 +100,7 @@ print_errno_message (int errnum)
00db10
 
00db10
 #if defined HAVE_STRERROR_R || _LIBC
00db10
   char errbuf[1024];
00db10
-# if STRERROR_R_CHAR_P || _LIBC
00db10
+# if _LIBC || STRERROR_R_CHAR_P
00db10
   s = __strerror_r (errnum, errbuf, sizeof errbuf);
00db10
 # else
00db10
   if (__strerror_r (errnum, errbuf, sizeof errbuf) == 0)