diff --git a/src/cl65/spawn-amiga.inc b/src/cl65/spawn-amiga.inc index 4f0565c2e..ade63ef7e 100644 --- a/src/cl65/spawn-amiga.inc +++ b/src/cl65/spawn-amiga.inc @@ -31,8 +31,18 @@ -#include -#include +/*****************************************************************************/ +/* Data */ +/*****************************************************************************/ + + + +/* Mode argument for spawn. This value is ignored by the function and only + * provided for DOS/Windows compatibility. + */ +#ifndef P_WAIT +#define P_WAIT 0 +#endif @@ -64,7 +74,7 @@ int spawnvp (int Mode attribute ((unused)), SB_Terminate (&Command); /* Invoke the shell to execute the command */ - Status = System (SB_GetConstBuf (&Command), TAG_END) + Status = system (SB_GetConstBuf (&Command)); /* Free the string buf data */ DoneStrBuf (&Command);