[Freeswitch-svn] [commit] r13386 - in freeswitch/trunk/libs/apr: build include/arch/unix

FreeSWITCH SVN mikej at freeswitch.org
Tue May 19 09:47:09 PDT 2009


Author: mikej
Date: Tue May 19 11:47:09 2009
New Revision: 13386

Log:
fix PTHREAD_MUTEX_RECURSIVE detection on SUSE 10

Modified:
   freeswitch/trunk/libs/apr/build/apr_threads.m4
   freeswitch/trunk/libs/apr/include/arch/unix/apr_arch_proc_mutex.h
   freeswitch/trunk/libs/apr/include/arch/unix/apr_arch_thread_mutex.h

Modified: freeswitch/trunk/libs/apr/build/apr_threads.m4
==============================================================================
--- freeswitch/trunk/libs/apr/build/apr_threads.m4	(original)
+++ freeswitch/trunk/libs/apr/build/apr_threads.m4	Tue May 19 11:47:09 2009
@@ -224,7 +224,8 @@
 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>
 

Modified: freeswitch/trunk/libs/apr/include/arch/unix/apr_arch_proc_mutex.h
==============================================================================
--- freeswitch/trunk/libs/apr/include/arch/unix/apr_arch_proc_mutex.h	(original)
+++ freeswitch/trunk/libs/apr/include/arch/unix/apr_arch_proc_mutex.h	Tue May 19 11:47:09 2009
@@ -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"

Modified: freeswitch/trunk/libs/apr/include/arch/unix/apr_arch_thread_mutex.h
==============================================================================
--- freeswitch/trunk/libs/apr/include/arch/unix/apr_arch_thread_mutex.h	(original)
+++ freeswitch/trunk/libs/apr/include/arch/unix/apr_arch_thread_mutex.h	Tue May 19 11:47:09 2009
@@ -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"



More information about the Freeswitch-svn mailing list