summaryrefslogtreecommitdiff
path: root/ext/dl/cptr.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dl/cptr.c')
-rw-r--r--ext/dl/cptr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/cptr.c b/ext/dl/cptr.c
index 74a233b527..3be97b272c 100644
--- a/ext/dl/cptr.c
+++ b/ext/dl/cptr.c
@@ -423,7 +423,7 @@ rb_dlptr_s_to_ptr(VALUE self, VALUE val)
#if HAVE_RB_IO_STDIO_FILE
fp = rb_io_stdio_file(fptr);
#else
- fp = fptr->f;
+ fp = fptr->fd;
#endif
return rb_dlptr_new(fp, 0, NULL);
}