fix PTHREAD_MUTEX_RECURSIVE detection on SUSE 10

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13386 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-05-19 16:47:09 +00:00
parent 3718cbc956
commit c923f7a1f9
3 changed files with 10 additions and 1 deletions

View File

@ -224,7 +224,8 @@ AC_DEFUN(APR_CHECK_SIGWAIT_ONE_ARG,[
dnl Check for recursive mutex support (per SUSv3).
AC_DEFUN([APR_CHECK_PTHREAD_RECURSIVE_MUTEX], [
AC_CACHE_CHECK([for recursive mutex support], [apr_cv_mutex_recursive],
[AC_TRY_RUN([#include <sys/types.h>
[AC_TRY_RUN([#define _XOPEN_SOURCE=600
#include <sys/types.h>
#include <pthread.h>
#include <stdlib.h>

View File

@ -17,6 +17,10 @@
#ifndef PROC_MUTEX_H
#define PROC_MUTEX_H
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE=600
#endif
#include "apr.h"
#include "apr_private.h"
#include "apr_general.h"

View File

@ -17,6 +17,10 @@
#ifndef THREAD_MUTEX_H
#define THREAD_MUTEX_H
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE=600
#endif
#include "apr.h"
#include "apr_private.h"
#include "apr_general.h"