summaryrefslogtreecommitdiffhomepage
path: root/lib/uloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/uloop.c')
-rw-r--r--lib/uloop.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/uloop.c b/lib/uloop.c
index 99cd984..d8d702f 100644
--- a/lib/uloop.c
+++ b/lib/uloop.c
@@ -23,6 +23,7 @@
#include <libubox/uloop.h>
#include "ucode/module.h"
+#include "ucode/platform.h"
#define err_return(err) do { last_error = err; return NULL; } while(0)
@@ -535,13 +536,8 @@ uc_uloop_process(uc_vm_t *vm, size_t nargs)
free(buf);
}
-#ifdef __APPLE__
- execve((const char *)ucv_string_get(executable),
- (char * const *)argp, (char * const *)envp);
-#else
execvpe((const char *)ucv_string_get(executable),
(char * const *)argp, (char * const *)envp);
-#endif
_exit(-1);
}