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

25845f
commit 61fe374a44a92621e0b75ec1f011ff1fba6c2148
25845f
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
25845f
Date:   Mon Sep 15 10:16:14 2014 +0530
25845f
25845f
    Remove _POSIX_REGEX_VERSION
25845f
    
25845f
    There is no _POSIX_REGEX_VERSION, so don't check for it.
25845f
    _REGEX_VERSION has been removed as well[1], so only keep the -1 return
25845f
    for backward compatibility.  I found this when trying to make the
25845f
    getconf environment variables typo-proof.
25845f
    
25845f
            * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
25845f
            _SC_REGEX_VERSION.
25845f
    
25845f
    [1] http://pubs.opengroup.org/onlinepubs/009695399/functions/sysconf.html
25845f
25845f
diff --git a/sysdeps/posix/sysconf.c b/sysdeps/posix/sysconf.c
25845f
index e795b565367bdd1b..cf4f8010097e309a 100644
25845f
--- a/sysdeps/posix/sysconf.c
25845f
+++ b/sysdeps/posix/sysconf.c
25845f
@@ -983,12 +983,10 @@ __sysconf (name)
25845f
 #else
25845f
       return -1;
25845f
 #endif
25845f
+    /* _REGEX_VERSION has been removed with IEEE Std 1003.1-2001/Cor 2-2004,
25845f
+       item XSH/TC2/D6/137.  */
25845f
     case _SC_REGEX_VERSION:
25845f
-#if _POSIX_REGEX_VERSION > 0
25845f
-      return _POSIX_REGEX_VERSION;
25845f
-#else
25845f
       return -1;
25845f
-#endif
25845f
 
25845f
     case _SC_SHELL:
25845f
 #if _POSIX_SHELL > 0