This commit is contained in:
Miodrag Milanovic 2026-08-18 11:37:14 +02:00
parent 89b0b366a2
commit a51bf4a7bb
1 changed files with 7 additions and 1 deletions

View File

@ -40,7 +40,9 @@
#else #else
#include <fcntl.h> #include <fcntl.h>
#include <sys/types.h> #include <sys/types.h>
#if !defined(__wasm)
#include <sys/wait.h> #include <sys/wait.h>
#endif
#include <unistd.h> #include <unistd.h>
#endif #endif
@ -1628,7 +1630,11 @@ static int Sn_MapLutExecutable( char * pBuffer, size_t nBuffer )
static int Sn_MapLutRunProcess( const char * pExecutable, const char * pCommand ) 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}; const char * pArgs[] = {pExecutable, "-q", pCommand, NULL};
return (int)_spawnv( _P_WAIT, pExecutable, pArgs ); return (int)_spawnv( _P_WAIT, pExecutable, pArgs );
#else #else