diff options
author | whitequark <whitequark@whitequark.org> | 2020-04-30 17:12:47 +0000 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2020-05-01 08:25:53 -0700 |
commit | 2db5f19ab6f86a11d131add176222d0260593a57 (patch) | |
tree | e1d4042d00053cbd81f2eaf847bb6f53cb9ad953 | |
parent | 9366e4fa68fe73ba0f514e20f589dab0f5489e56 (diff) | |
download | abc-2db5f19ab6f86a11d131add176222d0260593a57.tar.gz abc-2db5f19ab6f86a11d131add176222d0260593a57.tar.bz2 abc-2db5f19ab6f86a11d131add176222d0260593a57.zip |
Add support for WASI platform in Util_SignalSystem.
-rw-r--r-- | src/misc/util/utilSignal.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/misc/util/utilSignal.c b/src/misc/util/utilSignal.c index 03af81d1..137ff54b 100644 --- a/src/misc/util/utilSignal.c +++ b/src/misc/util/utilSignal.c @@ -43,7 +43,11 @@ ABC_NAMESPACE_IMPL_START int Util_SignalSystem(const char* cmd) { +#if defined(__wasm) + return -1; +#else return system(cmd); +#endif } int tmpFile(const char* prefix, const char* suffix, char** out_name); |