diff --git a/cbits/posix/runProcess.c b/cbits/posix/runProcess.c index cb23f9e8..55dd916a 100644 --- a/cbits/posix/runProcess.c +++ b/cbits/posix/runProcess.c @@ -5,6 +5,11 @@ ------------------------------------------------------------------------- */ #include "runProcess.h" + +// Callers are stubbed out on wasm32: runInteractiveProcess (System/Process/Posix.hs), +// terminateProcess, getProcessExitCode, waitForProcess (System/Process.hs). +#if !defined(wasm32_HOST_ARCH) + #include "common.h" #include @@ -271,3 +276,5 @@ waitForProcess (ProcHandle handle, int *pret) return -1; } + +#endif // !wasm32_HOST_ARCH diff --git a/process.cabal b/process.cabal index ec25bd36..df26c287 100644 --- a/process.cabal +++ b/process.cabal @@ -94,7 +94,7 @@ library ghc-options: -Wall - build-depends: base >= 4.12.0.0 && < 4.23, + build-depends: base >= 4.12.0.0 && < 4.24, directory >= 1.1 && < 1.4, deepseq >= 1.1 && < 1.6 diff --git a/test/process-tests.cabal b/test/process-tests.cabal index 269b8af3..7191f8cf 100644 --- a/test/process-tests.cabal +++ b/test/process-tests.cabal @@ -22,7 +22,7 @@ common process-dep custom-setup setup-depends: - base >= 4.10 && < 4.23, + base >= 4.10 && < 4.24, directory >= 1.1 && < 1.4, filepath >= 1.2 && < 1.6, Cabal >= 2.4 && < 3.18,