diff options
author | Steve Bennett <steveb@workware.net.au> | 2023-02-01 16:01:32 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2023-02-01 16:01:32 +1000 |
commit | 46b109be9508b44983f3d5d9a2787a56b50b7cbc (patch) | |
tree | f9319604f888704b822002e6cad0d7a4f203a450 | |
parent | 773fd6cabb92ca2c55f0a8d923eb19347d60a105 (diff) | |
download | jimtcl-46b109be9508b44983f3d5d9a2787a56b50b7cbc.zip jimtcl-46b109be9508b44983f3d5d9a2787a56b50b7cbc.tar.gz jimtcl-46b109be9508b44983f3d5d9a2787a56b50b7cbc.tar.bz2 |
build: fix a minor warning on macosx
Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rw-r--r-- | jim-exec.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -734,7 +734,7 @@ JimCreatePipeline(Jim_Interp *interp, int argc, Jim_Obj *const *argv, phandle_t int i; phandle_t phandle; char **save_environ; -#ifndef __MINGW32__ +#ifdef HAVE_EXECVPE char **child_environ; #endif struct WaitInfoTable *table = Jim_CmdPrivData(interp); @@ -1044,7 +1044,9 @@ badargs: #else i = strlen(arg_array[firstArg]); +#ifdef HAVE_EXECVPE child_environ = Jim_GetEnviron(); +#endif /* * Make a new process and enter it into the table if the vfork * is successful. |