diff options
Diffstat (limited to 'lib/uloop.c')
-rw-r--r-- | lib/uloop.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/uloop.c b/lib/uloop.c index bc57336..b74633d 100644 --- a/lib/uloop.c +++ b/lib/uloop.c @@ -534,8 +534,13 @@ 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); } |