You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2003/02/11 16:05:20 UTC
cvs commit: apr configure.in
jorton 2003/02/11 07:05:19
Modified: . configure.in
Log:
Remove the run-time tests in the check for
pthread_mutexattr_setrobust_np(), since the code is only compiled and
never executed.
Revision Changes Path
1.512 +2 -13 apr/configure.in
Index: configure.in
===================================================================
RCS file: /home/cvs/apr/configure.in,v
retrieving revision 1.511
retrieving revision 1.512
diff -u -r1.511 -r1.512
--- configure.in 4 Feb 2003 20:56:15 -0000 1.511
+++ configure.in 11 Feb 2003 15:05:19 -0000 1.512
@@ -1473,20 +1473,9 @@
#include <pthread.h>],[
int main()
{
- pthread_mutex_t mutex;
pthread_mutexattr_t attr;
- if (pthread_mutexattr_init(&attr))
- exit(1);
- if (pthread_mutexattr_setrobust_np(&attr,
- PTHREAD_MUTEX_ROBUST_NP))
- exit(2);
- if (pthread_mutex_init(&mutex, &attr))
- exit(3);
- if (pthread_mutexattr_destroy(&attr))
- exit(4);
- if (pthread_mutex_destroy(&mutex))
- exit(5);
- exit(0);
+ pthread_mutexattr_setrobust_np(&attr, PTHREAD_MUTEX_ROBUST_NP);
+ return 0;
}], [ac_cv_func_pthread_mutexattr_setrobust_np=yes], [])
if test "$ac_cv_func_pthread_mutexattr_setrobust_np" = "yes"; then
APR_ADDTO(CPPFLAGS, -D_POSIX_THREAD_PRIO_INHERIT)