summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/io.c b/io.c
index c0457731d0..6a0d7114d2 100644
--- a/io.c
+++ b/io.c
@@ -4670,7 +4670,8 @@ io_close_fptr(VALUE io)
rb_io_t *fptr;
VALUE write_io;
rb_io_t *write_fptr;
- LIST_HEAD(busy);
+ struct list_head busy;
+ busy.n.next = busy.n.prev = &busy.n;
write_io = GetWriteIO(io);
if (io != write_io) {