From a51bf4a7bb38ce06ea3a544b1463b40832213917 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Tue, 18 Aug 2026 11:37:14 +0200 Subject: [PATCH] WASI fix --- src/base/sn/snCom.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/base/sn/snCom.c b/src/base/sn/snCom.c index 5e9ead0a7..8a894a810 100644 --- a/src/base/sn/snCom.c +++ b/src/base/sn/snCom.c @@ -40,7 +40,9 @@ #else #include #include +#if !defined(__wasm) #include +#endif #include #endif @@ -1628,7 +1630,11 @@ static int Sn_MapLutExecutable( char * pBuffer, size_t nBuffer ) static int Sn_MapLutRunProcess( const char * pExecutable, const char * pCommand ) { -#if defined(_MSC_VER) || defined(__MINGW32__) +#if defined(__wasm) + (void)pExecutable; + (void)pCommand; + return -1; +#elif defined(_MSC_VER) || defined(__MINGW32__) const char * pArgs[] = {pExecutable, "-q", pCommand, NULL}; return (int)_spawnv( _P_WAIT, pExecutable, pArgs ); #else