--- libaitsched/src/hooks.c 2014/05/21 21:55:10 1.27.2.2 +++ libaitsched/src/hooks.c 2014/05/21 22:09:01 1.27.2.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: hooks.c,v 1.27.2.2 2014/05/21 21:55:10 misho Exp $ +* $Id: hooks.c,v 1.27.2.3 2014/05/21 22:09:01 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -740,7 +740,7 @@ sched_hook_fetch(void *root, void *arg __unused) #else sched_timespec2val(&r->root_wait, &tv); timeout = &tv; -#endif /* KQ_DISABLE */ +#endif /* KQ_SUPPORT */ } else if (sched_timespecisinf(&r->root_poll)) timeout = NULL; else { @@ -749,7 +749,7 @@ sched_hook_fetch(void *root, void *arg __unused) #else sched_timespec2val(&r->root_poll, &tv); timeout = &tv; -#endif /* KQ_DISABLE */ +#endif /* KQ_SUPPORT */ } #if SUP_ENABLE == KQ_ENABLE @@ -758,7 +758,7 @@ sched_hook_fetch(void *root, void *arg __unused) rfd = xfd = r->root_fds[0]; wfd = r->root_fds[1]; if ((en = select(r->root_kq, &rfd, &wfd, &xfd, timeout)) == -1) { -#endif /* KQ_DISABLE */ +#endif /* KQ_SUPPORT */ if (r->root_hooks.hook_exec.exception) { if (r->root_hooks.hook_exec.exception(r, NULL)) return NULL; @@ -1258,7 +1258,7 @@ sched_hook_fetch(void *root, void *arg __unused) break; if (i > 2) r->root_kq = i + 1; -#endif /* KQ_DISABLE */ +#endif /* KQ_SUPPORT */ skip_event: /* timer update & put in ready queue */