Blame SOURCES/glibc-rh677316-netdb-reentrant.patch

51f0aa
Backport of this upstream commit:
51f0aa
51f0aa
commit 7f9d00341057eb80b43fa83956b8d7798b4dabea
51f0aa
Author: Roland McGrath <roland@hack.frob.com>
51f0aa
Date:   Tue Aug 27 11:09:33 2013 -0700
51f0aa
51f0aa
    Clean up h_errno declaration to use __thread unconditionally.
51f0aa
51f0aa
Adjusted for the IS_IN changes, which were applied upstream after this
51f0aa
commit (and downstream before its backport).
51f0aa
51f0aa
diff --git a/include/netdb.h b/include/netdb.h
51f0aa
index 3b24747fd5df6562..b6d7b90bbf8abd2e 100644
51f0aa
--- a/include/netdb.h
51f0aa
+++ b/include/netdb.h
51f0aa
@@ -5,17 +5,12 @@
51f0aa
 /* Macros for accessing h_errno from inside libc.  */
51f0aa
 # if IS_IN_LIB
51f0aa
 #  undef  h_errno
51f0aa
-#  ifdef _LIBC_REENTRANT
51f0aa
-#   include <tls.h>
51f0aa
-#   if IS_IN (libc)
51f0aa
-#    define h_errno __libc_h_errno
51f0aa
-#   else
51f0aa
-#    define h_errno h_errno	/* For #ifndef h_errno tests.  */
51f0aa
-#   endif
51f0aa
-extern __thread int h_errno attribute_tls_model_ie;
51f0aa
+#  if IS_IN (libc)
51f0aa
+#   define h_errno __libc_h_errno
51f0aa
 #  else
51f0aa
-extern int h_errno;
51f0aa
-#  endif	/* _LIBC_REENTRANT */
51f0aa
+#   define h_errno h_errno	/* For #ifndef h_errno tests.  */
51f0aa
+#  endif
51f0aa
+extern __thread int h_errno attribute_tls_model_ie;
51f0aa
 # endif /* IS_IN_LIB */
51f0aa
 # define __set_h_errno(x) (h_errno = (x))
51f0aa