aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2014-12-21 18:00:38 +0200
committerLasse Collin <lasse.collin@tukaani.org>2014-12-21 18:00:38 +0200
commit2cb82ff21c62def11f3683a8bb0aaf363102aaa0 (patch)
tree503a9f377efdc5d275b5d5a0d850d271502980dd /src/common
parentpo/fr: improve wording for help for --lzma1/--lzma2. (diff)
downloadxz-2cb82ff21c62def11f3683a8bb0aaf363102aaa0.tar.xz
Fix build when --disable-threads is used.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/mythread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/mythread.h b/src/common/mythread.h
index 7a68da8f..be226542 100644
--- a/src/common/mythread.h
+++ b/src/common/mythread.h
@@ -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)