summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-26 09:16:14 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-26 09:16:14 +0000
commit847fe27e3144db48fefcce9b0271a460795f3294 (patch)
treef475e34e0bbbca24db9bd065d0256c045e650ad5 /dir.c
parent6d2662d45a6971805a773b5e7ba9e2f97eec43bf (diff)
* dir.c (dir_set_pos): Fix a compilation error when seekdir() is not
exist. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 00bac4df90..9955743d49 100644
--- a/dir.c
+++ b/dir.c
@@ -731,6 +731,7 @@ dir_seek(VALUE dir, VALUE pos)
#define dir_seek rb_f_notimplement
#endif
+#ifdef HAVE_SEEKDIR
/*
* call-seq:
* dir.pos = integer -> integer
@@ -751,6 +752,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: