diff --git a/Libraries/LibPthread/pthread.cpp b/Libraries/LibPthread/pthread.cpp index 8e5e368005d..061d19f427e 100644 --- a/Libraries/LibPthread/pthread.cpp +++ b/Libraries/LibPthread/pthread.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include @@ -90,6 +91,13 @@ int pthread_detach(pthread_t thread) return syscall(SC_detach_thread, thread); } +int pthread_sigmask(int how, const sigset_t* set, sigset_t* old_set) +{ + if (sigprocmask(how, set, old_set)) + return errno; + return 0; +} + int pthread_mutex_init(pthread_mutex_t* mutex, const pthread_mutexattr_t* attributes) { // FIXME: Implement mutex attributes