提交 817439d7 authored 作者: Anthony Minessale's avatar Anthony Minessale

check for SCHED_FIFO in configure

上级 dbf5153f
...@@ -532,6 +532,12 @@ AC_CHECK_DECL([SCHED_RR], ...@@ -532,6 +532,12 @@ AC_CHECK_DECL([SCHED_RR],
#include <sched.h> #include <sched.h>
#endif]) #endif])
AC_CHECK_DECL([SCHED_FIFO],
[AC_DEFINE([HAVE_SCHED_FIFO],[1],[SCHED_FIFO constant for sched_setscheduler])],,
[#ifdef HAVE_SCHED_H
#include <sched.h>
#endif])
# #
# use mlockall only on linux (for now; if available) # use mlockall only on linux (for now; if available)
# #
...@@ -572,7 +578,6 @@ if test "x${ac_cv_func_sched_setscheduler}" = "xyes" -a \ ...@@ -572,7 +578,6 @@ if test "x${ac_cv_func_sched_setscheduler}" = "xyes" -a \
then then
AC_DEFINE([USE_SCHED_SETSCHEDULER],[1],[Enable round-robin scheduler using sched_setscheduler]) AC_DEFINE([USE_SCHED_SETSCHEDULER],[1],[Enable round-robin scheduler using sched_setscheduler])
fi fi
# #
# xmlrpc-c checks # xmlrpc-c checks
# #
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论