windows-only bit

This commit is contained in:
nhmall
2018-04-26 18:00:32 -04:00
parent bcd6b3dbcd
commit 72d38f1f67
+10 -6
View File
@@ -665,13 +665,17 @@ int lev, oflag;
void void
really_close() really_close()
{ {
int fd = lftrack.fd; int fd;
if (lftrack.init) {
fd = lftrack.fd;
lftrack.nethack_thinks_it_is_open = FALSE; lftrack.nethack_thinks_it_is_open = FALSE;
lftrack.fd = -1; lftrack.fd = -1;
lftrack.oflag = 0; lftrack.oflag = 0;
if (fd != -1) if (fd != -1)
(void) close(fd); (void) close(fd);
}
return; return;
} }