--- libaitsched/src/aitsched.c 2014/05/19 23:35:40 1.25.2.2 +++ libaitsched/src/aitsched.c 2014/05/21 22:22:57 1.25.2.5 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitsched.c,v 1.25.2.2 2014/05/19 23:35:40 misho Exp $ +* $Id: aitsched.c,v 1.25.2.5 2014/05/21 22:22:57 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -174,16 +174,18 @@ schedRegisterHooks(sched_root_task_t * __restrict root root->root_hooks.hook_add.read = sched_hook_read; root->root_hooks.hook_add.write = sched_hook_write; - root->root_hooks.hook_add.alarm = sched_hook_alarm; #if defined(HAVE_TIMER_CREATE) && defined(HAVE_TIMER_SETTIME) && defined(HAVE_TIMER_DELETE) root->root_hooks.hook_add.rtc = sched_hook_rtc; #endif +#if SUP_ENABLE == KQ_SUPPORT + root->root_hooks.hook_add.alarm = sched_hook_alarm; root->root_hooks.hook_add.node = sched_hook_node; root->root_hooks.hook_add.proc = sched_hook_proc; root->root_hooks.hook_add.signal = sched_hook_signal; #ifdef EVFILT_USER root->root_hooks.hook_add.user = sched_hook_user; #endif +#endif /* KQ_SUPPORT */ #ifdef HAVE_LIBPTHREAD root->root_hooks.hook_add.thread = sched_hook_thread; #endif @@ -434,7 +436,7 @@ schedTrigger(sched_task_t * __restrict task) return 0; #endif -#endif /* KQ_DISABLE */ +#endif /* KQ_SUPPORT */ } /*