Commit 9f1812ce authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

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

parent 5547d063
......@@ -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
......
......@@ -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"
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment