diff options
author | Nicolas Williams <nico@cryptonector.com> | 2017-02-26 18:06:35 -0600 |
---|---|---|
committer | Nicolas Williams <nico@cryptonector.com> | 2017-02-26 18:06:35 -0600 |
commit | 0337027d5485515a923658b86e911c8e94f912e7 (patch) | |
tree | fe9c8902cba48e9fa26f731af753fa71dd68b6a8 | |
parent | 8ea21a54adfa9e518f4855d2dc06ae3c0456d69c (diff) |
Fix environ Win32 build problem
-rw-r--r-- | src/builtin.c | 2 | ||||
-rw-r--r-- | src/compile.c | 4 |
2 files changed, 3 insertions, 3 deletions
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 |