From 0184d235b37ee09d3c17ba14cde414962eedfdca Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 29 Sep 2023 09:32:15 +0200 Subject: include: fix execvpe compat function on macOS Accept char * const *, cast internally. Fixes a compile error Signed-off-by: Felix Fietkau --- include/ucode/platform.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ucode/platform.h b/include/ucode/platform.h index 52eb391..ef244c6 100644 --- a/include/ucode/platform.h +++ b/include/ucode/platform.h @@ -61,12 +61,12 @@ __hidden int pipe2(int[2], int); __hidden int sigtimedwait(const sigset_t *, siginfo_t *, const struct timespec *); static inline int -execvpe(const char *program, char **argv, char **envp) +execvpe(const char *program, char * const *argv, char * const *envp) { char **saved = environ; int rc; - environ = envp; + environ = (char **)envp; rc = execvp(program, argv); environ = saved; -- cgit v1.2.3