]> git.sur5r.net Git - cc65/blobdiff - src/cl65/spawn-amiga.inc
Reverted part of change 4108 that prevented an optimization step to find
[cc65] / src / cl65 / spawn-amiga.inc
index 4f0565c2e9f8b59458568b247749032872bdccfb..41fa3895e82aeabdb25dce7ad5497cb02c98e4d1 100644 (file)
 
 
 
-#include <stdio.h>
-#include <clib/dos_protos.h>
+/*****************************************************************************/
+/*                                  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,10 +74,10 @@ 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);
+    SB_Done (&Command);
 
     /* Return the result */
     return Status;