From: Sergei Trofimovich Date: Mon, 19 Jun 2017 20:48:05 +0000 (+0100) Subject: thr_posix.c: fix implicit function declaration for 'pthread_setconcurrency' X-Git-Tag: OPENLDAP_REL_ENG_2_5_0ALPHA~52^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57b7003a6473206e2526dcc91c7ddb357c7e66de;p=thirdparty%2Fopenldap.git thr_posix.c: fix implicit function declaration for 'pthread_setconcurrency' 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 --- diff --git a/libraries/libldap_r/thr_posix.c b/libraries/libldap_r/thr_posix.c index 35bde07327..e0368cc1eb 100644 --- a/libraries/libldap_r/thr_posix.c +++ b/libraries/libldap_r/thr_posix.c @@ -14,6 +14,8 @@ * . */ +#define _XOPEN_SOURCE 500 /* For pthread_setconcurrency() on glibc */ + #include "portable.h" #if defined( HAVE_PTHREADS )