summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/io.c b/io.c
index 7144f59fa8..54df1c4426 100644
--- a/io.c
+++ b/io.c
@@ -61,6 +61,8 @@ struct timeval {
#include <net/socket.h>
#endif
+#include "util.h"
+
VALUE rb_cIO;
VALUE rb_eEOFError;
VALUE rb_eIOError;
@@ -2278,7 +2280,7 @@ rb_io_ctl(io, req, arg, io_p)
# endif
TRAP_END;
#else
- if (!rb_io_p) {
+ if (!io_p) {
rb_notimplement();
}
TRAP_BEG;