--- libaitsched/src/hooks.c 2026/11/12 12:03:39 1.42.20.1 +++ libaitsched/src/hooks.c 2026/11/13 10:07:22 1.43 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: hooks.c,v 1.42.20.1 2026/11/12 12:03:39 misho Exp $ +* $Id: hooks.c,v 1.43 2026/11/13 10:07:22 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -1231,7 +1231,7 @@ fetch_hook_epoll_proceed(int en, struct epoll_event *r #if SUP_ENABLE == NO_SUPPORT static inline void -fetch_hook_select_proceed(int en, fd_set rfd, fd_set wfd, fd_set xfd, sched_root_task_t *r) +fetch_hook_select_proceed(int en, sched_fd_set rfd, sched_fd_set wfd, sched_fd_set xfd, sched_root_task_t *r) { register int i, rflg, wflg; sched_task_t *t, *tmp, *task; @@ -1351,7 +1351,7 @@ sched_hook_fetch(void *root, void *arg __unused) u_long timeout = 0; #else struct timeval *timeout, tv; - fd_set rfd, wfd, xfd; + sched_fd_set rfd, wfd, xfd; #endif int en; @@ -1448,7 +1448,7 @@ sched_hook_fetch(void *root, void *arg __unused) xfd = r->root_fds[2]; rfd = r->root_fds[0]; wfd = r->root_fds[1]; - if ((en = select(r->root_kq, &rfd, &wfd, &xfd, timeout)) == -1) { + if ((en = select(r->root_kq, (fd_set*) &rfd, (fd_set*) &wfd, (fd_set*) &xfd, timeout)) == -1) { #endif /* KQ_SUPPORT */ if (r->root_hooks.hook_exec.exception) { if (r->root_hooks.hook_exec.exception(r, NULL))