FreeBSD 2.X has POSIX_THREADS, but is missing sched_yield().

This commit is contained in:
Kurt Zeilenga 1998-09-19 05:40:47 +00:00
parent 5547d063c4
commit 9f1812ce63
3 changed files with 6 additions and 6 deletions

4
configure vendored
View file

@ -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

View file

@ -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"

View file

@ -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