mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
NULL needs to be defined for pthread_detach(NULL).
This commit is contained in:
parent
5ba71a498b
commit
70555f853a
2 changed files with 295 additions and 285 deletions
|
|
@ -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 a new issue