ruby-changes:28426
From: akr <ko1@a...>
Date: Fri, 26 Apr 2013 18:16:56 +0900 (JST)
Subject: [ruby-changes:28426] akr:r40478 (trunk): * dir.c (dir_set_pos): Fix a compilation error when seekdir() is not
akr 2013-04-26 18:16:14 +0900 (Fri, 26 Apr 2013) New Revision: 40478 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40478 Log: * dir.c (dir_set_pos): Fix a compilation error when seekdir() is not exist. Modified files: trunk/ChangeLog trunk/dir.c Index: ChangeLog =================================================================== --- ChangeLog (revision 40477) +++ ChangeLog (revision 40478) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Apr 26 18:08:08 2013 Tanaka Akira <akr@f...> + + * dir.c (dir_set_pos): Fix a compilation error when seekdir() is not + exist. + Fri Apr 26 17:41:17 2013 Tanaka Akira <akr@f...> * thread_pthread.c (ruby_init_stack): Add STACK_GROW_DIR_DETECTION. Index: dir.c =================================================================== --- dir.c (revision 40477) +++ dir.c (revision 40478) @@ -731,6 +731,7 @@ dir_seek(VALUE dir, VALUE pos) https://github.com/ruby/ruby/blob/trunk/dir.c#L731 #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) https://github.com/ruby/ruby/blob/trunk/dir.c#L752 dir_seek(dir, pos); return pos; } +#else +#define dir_set_pos rb_f_notimplement +#endif /* * call-seq: -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/