]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9215 Define _XOPEN_SOURCE for glibc only
authorRyan Tandy <ryan@nardis.ca>
Thu, 23 Apr 2020 20:18:10 +0000 (13:18 -0700)
committerRyan Tandy <ryan@nardis.ca>
Thu, 23 Apr 2020 20:19:33 +0000 (13:19 -0700)
libraries/libldap_r/thr_posix.c

index e0368cc1eb259463bbac8805d2efbd38ec2817c5..bdc9e5b77921cda15f1bf141df9bcf4a495a7d7e 100644 (file)
@@ -14,7 +14,9 @@
  * <http://www.OpenLDAP.org/license.html>.
  */
 
-#define _XOPEN_SOURCE 500       /* For pthread_setconcurrency() on glibc */
+#ifdef __GLIBC__
+#define _XOPEN_SOURCE 500      /* For pthread_setconcurrency() */
+#endif
 
 #include "portable.h"