Skip to content

Fix building and testing with the JS backend #290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions System/Posix/Signals.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,17 @@ import System.Posix.Process
import System.Posix.Process.Internals
import Data.Dynamic

#if defined(javascript_HOST_ARCH)
-- These signals aren't supported by the JS RTS
-- and the header isn't exposed.
##define STG_SIG_DFL (-1)
##define STG_SIG_IGN (-2)
##define STG_SIG_ERR (-3)
##define STG_SIG_HAN (-4)
##define STG_SIG_RST (-5)
#else
##include "rts/Signals.h"
#endif

import GHC.Conc hiding (Signal)

Expand Down
Loading