--- libaitsched/inc/aitsched.h 2012/08/02 12:19:29 1.11.2.8 +++ libaitsched/inc/aitsched.h 2012/08/02 12:32:07 1.11.2.9 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitsched.h,v 1.11.2.8 2012/08/02 12:19:29 misho Exp $ +* $Id: aitsched.h,v 1.11.2.9 2012/08/02 12:32:07 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -53,7 +53,7 @@ SUCH DAMAGE. #include #include #include -#ifdef EVFILT_AIO +#if defined(EVFILT_AIO) && defined(SIGEV_KEVENT) #include #endif @@ -406,7 +406,7 @@ sched_task_t *schedSignal(sched_root_task_t * __restri #define schedSignalSelf(x) schedSignal(TASK_ROOT((x)), TASK_FUNC((x)), TASK_ARG((x)), \ TASK_VAL((x)), TASK_DATA((x)), TASK_DATLEN((x))) -#ifdef EVFILT_AIO +#if defined(EVFILT_AIO) && defined(SIGEV_KEVENT) /* * schedAIO() - Add AIO task to scheduler queue *