summaryrefslogtreecommitdiff
path: root/ext/-test-/dir/fileno.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/-test-/dir/fileno.c')
-rw-r--r--ext/-test-/dir/fileno.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/-test-/dir/fileno.c b/ext/-test-/dir/fileno.c
index 7a451bc1a74..48729429737 100644
--- a/ext/-test-/dir/fileno.c
+++ b/ext/-test-/dir/fileno.c
@@ -32,6 +32,7 @@ struct dir_data {
rb_encoding *enc;
};
+#ifdef HAVE_DIRFD
static void *
rb_check_typeddata0(VALUE obj /*, const rb_data_type_t *data_type */)
{
@@ -71,6 +72,7 @@ dir_check(VALUE dir)
if (!dirp->dir) dir_closed();
return dirp;
}
+#endif
#define GetDIR(obj, dirp) ((dirp) = dir_check(obj))