Changeset 139
- Timestamp:
- Oct 28, 2007, 4:59:22 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/aclocal.m4
r138 r139 1794 1794 fi 1795 1795 1796 # Detect PTHREAD_MUTEX_RECURSIVE 1797 AC_MSG_CHECKING([for recursive mutexes]) 1798 mutex_recursive=no 1799 AC_TRY_LINK([ 1800 #define _XOPEN_SOURCE 500 1801 #include <pthread.h>], [ 1802 pthread_mutexattr_t mta; 1803 pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_RECURSIVE); 1804 return 0;],[mutex_recursive=yes]) 1805 if test "x$mutex_recursive" = "xyes" 1806 then 1807 AC_DEFINE(HAVE_PTHREAD_MUTEX_RECURSIVE,1,[Define if you have recursive mutexes.]) 1808 fi 1809 AC_MSG_RESULT($mutex_recursive) 1810 1796 1811 LIBS="$save_LIBS" 1797 1812 CFLAGS="$save_CFLAGS" -
trunk/include/sh_pthread.h
r138 r139 36 36 * ---- Recursive mutex ---- 37 37 */ 38 #if defined( PTHREAD_MUTEX_RECURSIVE)38 #if defined(HAVE_PTHREAD_MUTEX_RECURSIVE) 39 39 40 40 /* On GNU C, it's an enum, thus the alternative implementation -
trunk/src/sh_mem.c
r138 r139 19 19 20 20 #include "config_xor.h" 21 22 #if defined(HAVE_PTHREAD_MUTEX_RECURSIVE) 23 #define _XOPEN_SOURCE 500 24 #endif 21 25 22 26 #include <stdio.h> -
trunk/src/sh_pthread.c
r138 r139 15 15 } 16 16 17 17 #if !defined(HAVE_PTHREAD_MUTEX_RECURSIVE) 18 18 /** 19 19 * libxml2 threads.c: set of generic threading related routines … … 73 73 } 74 74 #endif 75 76 77 #endif
Note:
See TracChangeset
for help on using the changeset viewer.