]> granicus.if.org Git - jq/commitdiff
Fix environ Win32 build problem
authorNicolas Williams <nico@cryptonector.com>
Mon, 27 Feb 2017 00:06:35 +0000 (18:06 -0600)
committerNicolas Williams <nico@cryptonector.com>
Mon, 27 Feb 2017 00:06:35 +0000 (18:06 -0600)
src/builtin.c
src/compile.c

index 1b879ab57711a9830c319b35be627c18f0375b82..b317c146392dd74c8022ec676bc67a29ce20028b 100644 (file)
@@ -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) {
index 3b18babde41cd3dee412ac9e7064f4156134ad9c..e0bd1406ccf676b8c3a840e4361d0b5ce6ee2e9a 100644 (file)
@@ -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