diff --git a/src/builtin.c b/src/builtin.c index 1b879ab5..b317c146 100644 --- a/src/builtin.c +++ b/src/builtin.c @@ -1013,7 +1013,7 @@ static jv f_error(jq_state *jq, jv input, jv msg) { // FIXME Should autoconf check for this! #ifndef WIN32 -extern const char **environ; +extern char **environ; #endif static jv f_env(jq_state *jq, jv input) { diff --git a/src/compile.c b/src/compile.c index 3b18babd..e0bd1406 100644 --- a/src/compile.c +++ b/src/compile.c @@ -998,8 +998,8 @@ static int count_cfunctions(block b) { return n; } -#ifdef WIN32 -extern const char **environ; +#ifndef WIN32 +extern char **environ; #endif static jv