--- libaitsched/src/tasks.c 2019/01/14 15:58:50 1.27 +++ libaitsched/src/tasks.c 2021/06/08 21:45:07 1.28 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: tasks.c,v 1.27 2019/01/14 15:58:50 misho Exp $ +* $Id: tasks.c,v 1.28 2021/06/08 21:45:07 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2018 +Copyright 2004 - 2019 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -307,8 +307,12 @@ schedNode2(sched_root_task_t * __restrict root, sched_ TASK_DATLEN(task) = opt_dlen; if (root->root_hooks.hook_add.node) +#ifdef __FreeBSD__ ptr = root->root_hooks.hook_add.node(task, (void*) (NOTE_READ | NOTE_CLOSE_WRITE | NOTE_CLOSE | NOTE_OPEN)); +#else + ptr = root->root_hooks.hook_add.node(task, NULL); +#endif else ptr = NULL;