#include <string.h>
#include <stddef.h>
#include <unistd.h>
-#include <spawn.h> // posix_spawn
+#ifndef __WIN32__
+# include <spawn.h> // posix_spawn
+#endif
#include "request.h"
#if SYSCALL_TRACE
{
int rv;
+ #if __WIN32__
+ rv = _spawnve(_P_NOWAIT, filename, argv, envp);
+ #else
rv = posix_spawn(NULL, filename, NULL, NULL, (void*)argv, (void*)envp);
+ #endif
return rv;
}