--- libaitsched/src/aitsched.c 2012/05/31 21:36:40 1.9.2.2 +++ libaitsched/src/aitsched.c 2012/05/31 22:31:48 1.10 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitsched.c,v 1.9.2.2 2012/05/31 21:36:40 misho Exp $ +* $Id: aitsched.c,v 1.10 2012/05/31 22:31:48 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -104,8 +104,10 @@ schedRegisterHooks(sched_root_task_t * __restrict root 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.user = sched_hook_user; root->root_hooks.hook_add.signal = sched_hook_signal; +#ifdef EVFILT_USER + root->root_hooks.hook_add.user = sched_hook_user; +#endif root->root_hooks.hook_exec.cancel = sched_hook_cancel; root->root_hooks.hook_exec.fetch = sched_hook_fetch; @@ -309,6 +311,10 @@ schedFetch(sched_root_task_t * __restrict root) int schedTrigger(sched_task_t * __restrict task) { +#ifndef EVFILT_USER + sched_SetErr(ENOTSUP, "Not supported kevent() filter"); + return -1; +#else struct kevent chg[1]; struct timespec timeout = { 0, 0 }; @@ -326,6 +332,7 @@ schedTrigger(sched_task_t * __restrict task) } return 0; +#endif } /*