diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-03-20 23:34:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-20 23:34:56 +0100 |
commit | a88aca97633c2ec58987a76a5a8d910c37680e07 (patch) | |
tree | dee32d4bba166995bdb32d4cf8f1fcad8bcead4d /lib/uloop.c | |
parent | 807060a5d2d40113d9d78bf9e3866efb3de4c442 (diff) | |
parent | ab46fdfe742e754a8a56207ce1fc5653085696ad (diff) |
Merge pull request #52 from jow-/portability-fixes
Portability fixes for macOS
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); } |