]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9215 fix for glibc again
authorHoward Chu <hyc@openldap.org>
Tue, 28 Apr 2020 15:33:41 +0000 (16:33 +0100)
committerHoward Chu <hyc@openldap.org>
Tue, 28 Apr 2020 15:33:41 +0000 (16:33 +0100)
libraries/libldap_r/thr_posix.c

index 3ea3d16f602295c4c09886a875a8602b707629e6..b2cebaeb764c25fdf4a6b1f83143f06f2aeccd6a 100644 (file)
  * <http://www.OpenLDAP.org/license.html>.
  */
 
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE 1          /* For pthread_setconcurrency() on glibc */
-#endif
 
 #include "portable.h"
 
 #if defined( HAVE_PTHREADS )
 
+#ifdef __GLIBC__
+#undef _FEATURES_H
+#define _XOPEN_SOURCE 500              /* For pthread_setconcurrency() on glibc */
+#endif
+
 #include <ac/errno.h>
 
 #ifdef REPLACE_BROKEN_YIELD