diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | dir.c | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Fri Apr 26 18:08:08 2013 Tanaka Akira <[email protected]> + + * dir.c (dir_set_pos): Fix a compilation error when seekdir() is not + exist. + Fri Apr 26 17:41:17 2013 Tanaka Akira <[email protected]> * thread_pthread.c (ruby_init_stack): Add STACK_GROW_DIR_DETECTION. @@ -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: |