more BSD compat

master
Felix von Leitner 2003-09-06 00:04:57 +00:00
parent 316a38ae42
commit 2e1b8aef8e
1 changed files with 2 additions and 2 deletions

View File

@ -2,9 +2,9 @@
#include "io_internal.h"
void io_close(int64 d) {
io_entry* e;
close(d);
io_entry* e=array_get(&io_fds,sizeof(io_entry),d);
if (e) {
if ((e=array_get(&io_fds,sizeof(io_entry),d))) {
e->inuse=0;
io_dontwantread(d);
io_dontwantwrite(d);