]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Fix build when --disable-threads is used.
authorLasse Collin <lasse.collin@tukaani.org>
Sun, 21 Dec 2014 16:00:38 +0000 (18:00 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Sun, 21 Dec 2014 16:00:38 +0000 (18:00 +0200)
src/common/mythread.h

index 7a68da8fb544c4240b0923a7d996220406769dce..be22654240aa592728b17b7bc775eda912610cf7 100644 (file)
@@ -81,6 +81,8 @@ do { \
 
 #if !(defined(_WIN32) && !defined(__CYGWIN__))
 // Use sigprocmask() to set the signal mask in single-threaded programs.
+#include <signal.h>
+
 static inline void
 mythread_sigmask(int how, const sigset_t *restrict set,
                sigset_t *restrict oset)