mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-09 02:52:04 +08:00
NULL needs to be defined for pthread_detach(NULL).
This commit is contained in:
parent
5ba71a498b
commit
70555f853a
@ -914,7 +914,12 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
|
||||
AC_CACHE_CHECK([for pthread_detach with <pthread.h>],
|
||||
[ol_cv_func_pthread_detach], [
|
||||
dnl save the flags
|
||||
AC_TRY_LINK([#include <pthread.h>],
|
||||
AC_TRY_LINK([
|
||||
#include <pthread.h>
|
||||
#ifndef NULL
|
||||
#define NULL (void*)0
|
||||
#endif
|
||||
],
|
||||
[pthread_detach(NULL);],
|
||||
[ol_cv_func_pthread_detach=yes],
|
||||
[ol_cv_func_pthread_detach=no])
|
||||
|
Loading…
Reference in New Issue
Block a user