Fixed the pthread_mutexattr_settype test program fragment.

git-svn-id: http://voip.null.ro/svn/yate@137 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2004-12-21 14:15:20 +00:00
parent 16c44c2d77
commit b8d02d4cf0
1 changed files with 2 additions and 3 deletions

View File

@ -55,13 +55,12 @@ AC_LANG_SAVE
AC_LANG_C
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Wall -Werror"
AC_TRY_COMPILE([],[
AC_TRY_COMPILE([
#include <unistd.h>
#include <pthread.h>
void f(void){
],[
pthread_mutexattr_t attr;
pthread_mutexattr_settype(&attr,PTHREAD_MUTEX_RECURSIVE_NP);
}
],
have_mutex_settype="yes",
have_mutex_settype="no"