summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dir.c b/dir.c
index bc51e5025e..a46906e1af 100644
--- a/dir.c
+++ b/dir.c
@@ -689,6 +689,7 @@ dir_seek(VALUE dir, VALUE pos)
#define dir_seek rb_f_notimplement
#endif
+#ifdef HAVE_SEEKDIR
/*
* call-seq:
* dir.pos( integer ) -> integer
@@ -709,6 +710,9 @@ dir_set_pos(VALUE dir, VALUE pos)
dir_seek(dir, pos);
return pos;
}
+#else
+#define dir_set_pos rb_f_notimplement
+#endif
/*
* call-seq: