diff --git a/build/openldap.m4 b/build/openldap.m4 index e1f935c970..846fe85eb2 100644 --- a/build/openldap.m4 +++ b/build/openldap.m4 @@ -650,7 +650,7 @@ AC_DEFUN([OL_POSIX_THREAD_VERSION], AC_EGREP_HEADER(pthread_detach,pthread.h,[ AC_EGREP_CPP(draft7,[ # include -# ifdef PTHREAD_CREATE_JOINABLE +# ifdef PTHREAD_CREATE_UNDETACHED draft7 # endif ], ol_cv_pthread_version=7, [