Blame SOURCES/openldap-cbinding-ITS-9215-fix-for-glibc-again.patch

e4ff3b
From d548ab15e0d615524c403440c01a9748bfcac87d Mon Sep 17 00:00:00 2001
e4ff3b
From: Howard Chu <hyc@openldap.org>
e4ff3b
Date: Tue, 28 Apr 2020 16:33:41 +0100
e4ff3b
Subject: [PATCH] ITS#9215 fix for glibc again
e4ff3b
e4ff3b
---
e4ff3b
 libraries/libldap_r/thr_posix.c | 5 +++++
e4ff3b
 1 file changed, 5 insertions(+)
e4ff3b
e4ff3b
diff --git a/libraries/libldap_r/thr_posix.c b/libraries/libldap_r/thr_posix.c
e4ff3b
index e4b435707..62f94ca16 100644
e4ff3b
--- a/libraries/libldap_r/thr_posix.c
e4ff3b
+++ b/libraries/libldap_r/thr_posix.c
e4ff3b
@@ -18,6 +18,11 @@
e4ff3b
 
e4ff3b
 #if defined( HAVE_PTHREADS )
e4ff3b
 
e4ff3b
+#ifdef __GLIBC__
e4ff3b
+#undef _FEATURES_H
e4ff3b
+#define _XOPEN_SOURCE 500		/* For pthread_setconcurrency() on glibc */
e4ff3b
+#endif
e4ff3b
+
e4ff3b
 #include <ac/errno.h>
e4ff3b
 
e4ff3b
 #ifdef REPLACE_BROKEN_YIELD
e4ff3b
-- 
e4ff3b
2.31.1
e4ff3b