]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
thr_posix.c: fix implicit function declaration for 'pthread_setconcurrency'
authorSergei Trofimovich <slyfox@gentoo.org>
Mon, 19 Jun 2017 20:48:05 +0000 (21:48 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 26 Mar 2020 22:06:41 +0000 (22:06 +0000)
thr_posix.c: In function 'ldap_pvt_thread_set_concurrency':
thr_posix.c:96:9: error: implicit declaration of function 'pthread_setconcurrency'
  return pthread_setconcurrency( n );
         ^~~~~~~~~~~~~~~~~~~~~~
         pthread_setcanceltype

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
libraries/libldap_r/thr_posix.c

index 35bde07327bbfa98cf38eab2d341cb5cfd6b05dd..e0368cc1eb259463bbac8805d2efbd38ec2817c5 100644 (file)
@@ -14,6 +14,8 @@
  * <http://www.OpenLDAP.org/license.html>.
  */
 
+#define _XOPEN_SOURCE 500       /* For pthread_setconcurrency() on glibc */
+
 #include "portable.h"
 
 #if defined( HAVE_PTHREADS )