--- libaitsched/src/tasks.c 2014/01/28 10:21:43 1.22.8.1 +++ libaitsched/src/tasks.c 2014/01/28 12:14:20 1.22.8.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: tasks.c,v 1.22.8.1 2014/01/28 10:21:43 misho Exp $ +* $Id: tasks.c,v 1.22.8.2 2014/01/28 12:14:20 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -505,6 +505,10 @@ sched_task_t * schedSignal(sched_root_task_t * __restrict root, sched_task_func_t func, void *arg, u_long sig, void *opt_data, size_t opt_dlen) { +#ifdef KQ_DISABLE + sched_SetErr(ENOTSUP, "disabled kqueue support"); + return NULL; +#else sched_task_t *task; void *ptr; @@ -542,6 +546,7 @@ schedSignal(sched_root_task_t * __restrict root, sched task = sched_unuseTask(task); return task; +#endif /* KQ_DISABLE */ } /*