mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
6d2662d45a
commit
847fe27e31
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Apr 26 18:08:08 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* dir.c (dir_set_pos): Fix a compilation error when seekdir() is not
|
||||
exist.
|
||||
|
||||
Fri Apr 26 17:41:17 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* thread_pthread.c (ruby_init_stack): Add STACK_GROW_DIR_DETECTION.
|
||||
|
|
4
dir.c
4
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:
|
||||
|
|
Loading…
Reference in a new issue