aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2011-12-13 08:08:18 +1000
committerSteve Bennett <steveb@workware.net.au>2011-12-13 08:08:18 +1000
commit6ebf6741a8e25b43637348a2a42800c150c3415b (patch)
tree2e3b106ff657e90fd61c8b8f3dfa0b5ac624dd44
parent278f372a86caa8fefee37cb5ef5fc521f43fa6aa (diff)
downloadjimtcl-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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/jim-aio.c b/jim-aio.c
index 4240311..7855317 100644
--- a/jim-aio.c
+++ b/jim-aio.c
@@ -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;
}