diff --git a/libs/libc/wqueue/work_usrthread.c b/libs/libc/wqueue/work_usrthread.c index b0f06c3a98..42ee091eb5 100644 --- a/libs/libc/wqueue/work_usrthread.c +++ b/libs/libc/wqueue/work_usrthread.c @@ -42,6 +42,7 @@ #include #include #include +#include #include #include #include @@ -268,7 +269,7 @@ void work_process(FAR struct usr_wqueue_s *wqueue) * signals directed to the worker thread to pend. */ - (void)nxsig_procmask(SIG_BLOCK, &sigset, &oldset); + (void)sigprocmask(SIG_BLOCK, &sigset, &oldset); work_unlock(); if (next == WORK_DELAY_MAX) @@ -291,10 +292,10 @@ void work_process(FAR struct usr_wqueue_s *wqueue) rqtp.tv_sec = sec; rqtp.tv_nsec = (next - (sec * 1000000)) * 1000; - sigtimewait(&sigset, NULL, &rqtp); + sigtimedwait(&sigset, NULL, &rqtp); } - (void)nxsig_procmask(SIG_SETMASK, &oldset, NULL); + (void)sigprocmask(SIG_SETMASK, &oldset, NULL); } /****************************************************************************