diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-26 09:16:14 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-26 09:16:14 +0000 |
commit | 847fe27e3144db48fefcce9b0271a460795f3294 (patch) | |
tree | f475e34e0bbbca24db9bd065d0256c045e650ad5 /dir.c | |
parent | 6d2662d45a6971805a773b5e7ba9e2f97eec43bf (diff) | |
download | ruby-847fe27e3144db48fefcce9b0271a460795f3294.tar.gz |
* 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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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: |