Skip to content

Commit

Permalink
xz: Don't call mythread_sigmask when building for WASM
Browse files Browse the repository at this point in the history
mythread.h omits mythread_sigmask on WASM.

Fixes: #161
See: 81db3b8
  • Loading branch information
Larhzu committed Mar 8, 2025
1 parent 4243c45 commit 2941b90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/xz/signals.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ signals_init(void)
#endif


#ifndef __VMS
#if !defined(__VMS) && !defined(__wasm__)
extern void
signals_block(void)
{
Expand Down
3 changes: 2 additions & 1 deletion src/xz/signals.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ extern volatile sig_atomic_t user_abort;
extern void signals_init(void);


#if (defined(_WIN32) && !defined(__CYGWIN__)) || defined(__VMS)
#if (defined(_WIN32) && !defined(__CYGWIN__)) || defined(__VMS) \
|| defined(__wasm__)
# define signals_block() do { } while (0)
# define signals_unblock() do { } while (0)
#else
Expand Down

0 comments on commit 2941b90

Please sign in to comment.