From 36ab9c8e4aab4ff210514ede60b8f2a64695067d Mon Sep 17 00:00:00 2001 From: Eugene Kabanov Date: Tue, 30 May 2023 08:57:57 +0300 Subject: [PATCH] Fix sigprocmask declaration missing when threads are disabled. (#396) --- chronos/osdefs.nim | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/chronos/osdefs.nim b/chronos/osdefs.nim index 971a9a93..39bd947d 100644 --- a/chronos/osdefs.nim +++ b/chronos/osdefs.nim @@ -825,10 +825,10 @@ elif defined(macos) or defined(macosx): from std/posix import close, shutdown, socket, getpeername, getsockname, recvfrom, sendto, send, bindSocket, recv, connect, unlink, listen, getaddrinfo, gai_strerror, getrlimit, - setrlimit, getpid, pthread_sigmask, sigprocmask, sigemptyset, - sigaddset, sigismember, fcntl, accept, pipe, write, - signal, read, setsockopt, getsockopt, getcwd, chdir, - waitpid, kill, + setrlimit, getpid, pthread_sigmask, sigprocmask, + sigemptyset, sigaddset, sigismember, fcntl, accept, + pipe, write, signal, read, setsockopt, getsockopt, + getcwd, chdir, waitpid, kill, Timeval, Timespec, Pid, Mode, Time, Sigset, SockAddr, SockLen, Sockaddr_storage, Sockaddr_in, Sockaddr_in6, Sockaddr_un, SocketHandle, AddrInfo, RLimit, @@ -846,10 +846,10 @@ elif defined(macos) or defined(macosx): export close, shutdown, socket, getpeername, getsockname, recvfrom, sendto, send, bindSocket, recv, connect, unlink, listen, getaddrinfo, gai_strerror, getrlimit, - setrlimit, getpid, pthread_sigmask, sigprocmask, sigemptyset, - sigaddset, sigismember, fcntl, accept, pipe, write, - signal, read, setsockopt, getsockopt, getcwd, chdir, - waitpid, kill, + setrlimit, getpid, pthread_sigmask, sigprocmask, + sigemptyset, sigaddset, sigismember, fcntl, accept, + pipe, write, signal, read, setsockopt, getsockopt, + getcwd, chdir, waitpid, kill, Timeval, Timespec, Pid, Mode, Time, Sigset, SockAddr, SockLen, Sockaddr_storage, Sockaddr_in, Sockaddr_in6, Sockaddr_un, SocketHandle, AddrInfo, RLimit, @@ -886,8 +886,8 @@ elif defined(linux): getrlimit, setrlimit, getpeername, getsockname, recvfrom, sendto, send, bindSocket, recv, connect, unlink, listen, sendmsg, recvmsg, getpid, fcntl, - pthread_sigmask, clock_gettime, signal, getcwd, chdir, - waitpid, kill, + pthread_sigmask, sigprocmask, clock_gettime, signal, + getcwd, chdir, waitpid, kill, ClockId, Itimerspec, Timespec, Sigset, Time, Pid, Mode, SigInfo, Id, Tmsghdr, IOVec, RLimit, SockAddr, SockLen, Sockaddr_storage, Sockaddr_in, @@ -909,8 +909,8 @@ elif defined(linux): getrlimit, setrlimit, getpeername, getsockname, recvfrom, sendto, send, bindSocket, recv, connect, unlink, listen, sendmsg, recvmsg, getpid, fcntl, - pthread_sigmask, clock_gettime, signal, getcwd, chdir, - waitpid, kill, + pthread_sigmask, sigprocmask, clock_gettime, signal, + getcwd, chdir, waitpid, kill, ClockId, Itimerspec, Timespec, Sigset, Time, Pid, Mode, SigInfo, Id, Tmsghdr, IOVec, RLimit, SockAddr, SockLen, Sockaddr_storage, Sockaddr_in,