From 847fe27e3144db48fefcce9b0271a460795f3294 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 26 Apr 2013 09:16:14 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ dir.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index bf771b640e..0bc60442a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Apr 26 18:08:08 2013 Tanaka Akira + + * dir.c (dir_set_pos): Fix a compilation error when seekdir() is not + exist. + Fri Apr 26 17:41:17 2013 Tanaka Akira * thread_pthread.c (ruby_init_stack): Add STACK_GROW_DIR_DETECTION. 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: