diff options
author | Jo-Philipp Wich <jo@mein.io> | 2023-08-09 01:35:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-09 01:35:55 +0200 |
commit | 5d265bd52f40dd94671783148e4e6ff068c8153a (patch) | |
tree | c70e0e687e59911fb0a6ed6b03cd5b78b8f33ac6 /lib/uloop.c | |
parent | a38315454add264a41094524e1fcf435acb85fe8 (diff) | |
parent | 6940c283d57d2c4e2ddab689fdba770823b8bcc0 (diff) |
Merge pull request #167 from jow-/debug-library
Introduce debug library
Diffstat (limited to 'lib/uloop.c')
-rw-r--r-- | lib/uloop.c | 6 |
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); } |