diff options
-rw-r--r-- | io.c | 3 | ||||
-rw-r--r-- | thread.c | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -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) { @@ -2288,7 +2288,8 @@ rb_notify_fd_close(int fd, struct list_head *busy) void rb_thread_fd_close(int fd) { - LIST_HEAD(busy); + struct list_head busy; + busy.n.next = busy.n.prev = &busy.n; if (rb_notify_fd_close(fd, &busy)) { do rb_thread_schedule(); while (!list_empty(&busy)); |