diff options
Diffstat (limited to 'ext/dl/cptr.c')
-rw-r--r-- | ext/dl/cptr.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/dl/cptr.c b/ext/dl/cptr.c index abfd9e8d1c..74a233b527 100644 --- a/ext/dl/cptr.c +++ b/ext/dl/cptr.c @@ -2,10 +2,9 @@ * $Id$ */ -#include <ruby.h> -#include <rubyio.h> +#include <ruby/ruby.h> +#include <ruby/io.h> #include <ctype.h> -#include <version.h> /* for ruby version code */ #include "dl.h" VALUE rb_cDLCPtr; @@ -421,7 +420,7 @@ rb_dlptr_s_to_ptr(VALUE self, VALUE val) rb_io_t *fptr; FILE *fp; GetOpenFile(val, fptr); -#if RUBY_VERSION_CODE >= 190 +#if HAVE_RB_IO_STDIO_FILE fp = rb_io_stdio_file(fptr); #else fp = fptr->f; |