]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
check for SCHED_FIFO in configure
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 25 Sep 2012 21:12:51 +0000 (16:12 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 25 Sep 2012 21:12:58 +0000 (16:12 -0500)
configure.in

index 5a97b86ace865e3e36ab260765b67347108d6702..92a88048fdabd81f195e09909c3c12d095f1689b 100644 (file)
@@ -532,6 +532,12 @@ AC_CHECK_DECL([SCHED_RR],
         #include <sched.h>
         #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)
 #
@@ -572,7 +578,6 @@ if test "x${ac_cv_func_sched_setscheduler}" = "xyes" -a \
 then
        AC_DEFINE([USE_SCHED_SETSCHEDULER],[1],[Enable round-robin scheduler using sched_setscheduler])
 fi
-
 #
 # xmlrpc-c checks
 #