NULL needs to be defined for pthread_detach(NULL).

This commit is contained in:
Kurt Zeilenga 1999-03-16 00:38:16 +00:00
parent 5ba71a498b
commit 70555f853a
2 changed files with 295 additions and 285 deletions

573
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -914,7 +914,12 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
AC_CACHE_CHECK([for pthread_detach with <pthread.h>], AC_CACHE_CHECK([for pthread_detach with <pthread.h>],
[ol_cv_func_pthread_detach], [ [ol_cv_func_pthread_detach], [
dnl save the flags 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);], [pthread_detach(NULL);],
[ol_cv_func_pthread_detach=yes], [ol_cv_func_pthread_detach=yes],
[ol_cv_func_pthread_detach=no]) [ol_cv_func_pthread_detach=no])