mythread.h: Disable signal functions in builds targeting Wasm + WASI.
commit81db3b889830132334d1f2129bdc93177ac2ca7d
authorChanTsune <41658782+ChanTsune@users.noreply.github.com>
Tue, 1 Aug 2023 15:17:17 +0000 (1 18:17 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 1 Aug 2023 15:18:05 +0000 (1 18:18 +0300)
treeee9be3ffa704626959ed46a93a296613d8906fdf
parent71c638c611324e606d324c8189fef8fe79db6991
mythread.h: Disable signal functions in builds targeting Wasm + WASI.

signal.h in WASI SDK doesn't currently provide sigprocmask()
or sigset_t. liblzma doesn't need them so this change makes
liblzma and xzdec build against WASI SDK. xz doesn't build yet
and the tests don't either as tuktest needs setjmp() which
isn't (yet?) implemented in WASI SDK.

Closes: https://github.com/tukaani-project/xz/pull/57
See also: https://github.com/tukaani-project/xz/pull/56

(The original commit was edited a little by Lasse Collin.)
src/common/mythread.h