From 9f1812ce635344cdc139429cf5855c22d361be6d Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sat, 19 Sep 1998 05:40:47 +0000 Subject: [PATCH] FreeBSD 2.X has POSIX_THREADS, but is missing sched_yield(). --- configure | 4 ++-- configure.in | 4 ++-- include/portable.h.in | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/configure b/configure index a865d1c682..ee61a39f97 100755 --- a/configure +++ b/configure @@ -2032,7 +2032,7 @@ else echo "$ac_t""no" 1>&6 fi - for ac_func in strtok_r pthread_init + for ac_func in strtok_r sched_yield do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:2039: checking for $ac_func" >&5 @@ -2091,7 +2091,7 @@ done LTHREAD_LIBS="$LTHREAD_LIBS -lc_r" fi else - for ac_func in strtok_r + for ac_func in strtok_r sched_yield do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:2098: checking for $ac_func" >&5 diff --git a/configure.in b/configure.in index c3b54bace3..f8f4b55271 100644 --- a/configure.in +++ b/configure.in @@ -320,12 +320,12 @@ AC_CHECK_LIB(pthread,strtok_r) if test $ac_cv_lib_pthread_strtok_r = no ; then AC_CHECK_LIB(c_r,strtok_r) - AC_CHECK_FUNCS(strtok_r pthread_init) + AC_CHECK_FUNCS(strtok_r sched_yield) if test $ac_cv_lib_c_r_strtok_r = yes ; then LTHREAD_LIBS="$LTHREAD_LIBS -lc_r" fi else - AC_CHECK_FUNCS(strtok_r) + AC_CHECK_FUNCS(strtok_r sched_yield) fi LIBS="$save_LIBS" diff --git a/include/portable.h.in b/include/portable.h.in index 323964157c..7121fb0936 100644 --- a/include/portable.h.in +++ b/include/portable.h.in @@ -97,8 +97,8 @@ /* Define if you have the mktime function. */ #undef HAVE_MKTIME -/* Define if you have the pthread_init function. */ -#undef HAVE_PTHREAD_INIT +/* Define if you have the sched_yield function. */ +#undef HAVE_SCHED_YIELD /* Define if you have the select function. */ #undef HAVE_SELECT -- 2.39.5