diff options
author | Steve Bennett <steveb@workware.net.au> | 2022-08-21 14:32:30 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2022-08-21 14:42:57 +1000 |
commit | 3fb9a8014c31c8c264664210e0c827d81dfb2fbd (patch) | |
tree | 56bfc2314180fd562bfe7569d22e7024c53aa2fc | |
parent | b28ab7544e2512eae0adaf4f19af4e3719fc20be (diff) | |
download | jimtcl-3fb9a8014c31c8c264664210e0c827d81dfb2fbd.zip jimtcl-3fb9a8014c31c8c264664210e0c827d81dfb2fbd.tar.gz jimtcl-3fb9a8014c31c8c264664210e0c827d81dfb2fbd.tar.bz2 |
build: minor windows build fixes
ifdef out some unix-only code so that we don't get
compiler complaints on Windows.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rw-r--r-- | jim-exec.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -614,12 +614,14 @@ static int Jim_WaitCommand(Jim_Interp *interp, int argc, Jim_Obj *const *argv) if (phandle == JIM_BAD_PHANDLE) { pid = -1; } +#ifndef __MINGW32__ else if (pid < 0) { /* This catches the case where pid=-1. It is only supported on unix where * the returned phandle is a pid, so can simply assign here */ pid = phandle; } +#endif errCodeObj = JimMakeErrorCode(interp, pid, status, NULL); |