diff options
author | Steve Bennett <steveb@workware.net.au> | 2011-12-13 08:08:18 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2011-12-13 08:08:18 +1000 |
commit | 6ebf6741a8e25b43637348a2a42800c150c3415b (patch) | |
tree | 2e3b106ff657e90fd61c8b8f3dfa0b5ac624dd44 | |
parent | 278f372a86caa8fefee37cb5ef5fc521f43fa6aa (diff) | |
download | jimtcl-6ebf6741a8e25b43637348a2a42800c150c3415b.zip jimtcl-6ebf6741a8e25b43637348a2a42800c150c3415b.tar.gz jimtcl-6ebf6741a8e25b43637348a2a42800c150c3415b.tar.bz2 |
aio: Fix a compile problem for JIM_ANSIC
Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rw-r--r-- | jim-aio.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1037,9 +1037,11 @@ static int JimMakeChannel(Jim_Interp *interp, FILE *fh, int fd, Jim_Obj *filenam if (fh == NULL) { JimAioSetError(interp, filename); +#if !defined(JIM_ANSIC) if (fd >= 0) { close(fd); } +#endif Jim_DecrRefCount(interp, filename); return JIM_ERR; } |