View | Details | Raw Unified
Collapse All | Expand All

(-) krb5-1.4.3/src/util/support/threads.c (-2 / +9 lines)
 Lines 171-177    Link Here 
dnl reference support we can figure out whether or not the pthread library
dnl reference support we can figure out whether or not the pthread library
dnl has been linked in.
dnl has been linked in.
dnl If we don't add any libraries for thread support, don't bother.
dnl If we don't add any libraries for thread support, don't bother.
AC_CHECK_FUNCS(pthread_once pthread_mutexattr_setrobust_np pthread_rwlock_init)
for fn in pthread_once pthread_mutexattr_setrobust_np pthread_rwlock_init ; do
	AC_CHECK_DECLS($fn,,,[
	#ifdef HAVE_PTHREAD
	#include <pthread.h>
	#endif
	])
	AC_CHECK_FUNCS($fn)
done
old_CC="$CC"
old_CC="$CC"
test "$PTHREAD_CC" != "" && test "$ac_cv_c_compiler_gnu" = no && CC=$PTHREAD_CC
test "$PTHREAD_CC" != "" && test "$ac_cv_c_compiler_gnu" = no && CC=$PTHREAD_CC
old_CFLAGS="$CFLAGS"
old_CFLAGS="$CFLAGS"
 Lines 141-147    Link Here 
	|| &pthread_equal == 0
	|| &pthread_equal == 0
	/* This catches Solaris 9.  May be redundant with the above
	/* This catches Solaris 9.  May be redundant with the above
	   tests now.  */
	   tests now.  */
# ifdef HAVE_PTHREAD_MUTEXATTR_SETROBUST_NP_IN_THREAD_LIB
# if defined(HAVE_PTHREAD_MUTEXATTR_SETROBUST_NP_IN_THREAD_LIB) && HAVE_DECL_PTHREAD_MUTEXATTR_SETROBUST_NP
	|| &pthread_mutexattr_setrobust_np == 0
	|| &pthread_mutexattr_setrobust_np == 0
# endif
# endif
	/* Any program that's really multithreaded will have to be
	/* Any program that's really multithreaded will have to be