mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/dl/cptr.c (rb_dlptr_s_to_ptr): no longer check
HAVE_RB_IO_STDIO_FILE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4b3644bef7
commit
7db17c6ad6
3 changed files with 4 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
|||
Wed Aug 8 18:58:14 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
Wed Aug 8 19:17:40 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* ext/dl/cptr.c (rb_dlptr_s_to_ptr): fptr->f was renamed to fd. a
|
||||
report from Yusuf Celik <ycelik AT oytek.com.tr>.
|
||||
* ext/dl/cptr.c (rb_dlptr_s_to_ptr): no longer check
|
||||
HAVE_RB_IO_STDIO_FILE.
|
||||
|
||||
Wed Aug 8 15:52:01 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
|
|
|
@ -420,11 +420,7 @@ rb_dlptr_s_to_ptr(VALUE self, VALUE val)
|
|||
rb_io_t *fptr;
|
||||
FILE *fp;
|
||||
GetOpenFile(val, fptr);
|
||||
#if HAVE_RB_IO_STDIO_FILE
|
||||
fp = rb_io_stdio_file(fptr);
|
||||
#else
|
||||
fp = fptr->fd;
|
||||
#endif
|
||||
return rb_dlptr_new(fp, 0, NULL);
|
||||
}
|
||||
else if( rb_obj_is_kind_of(val, rb_cString) == Qtrue ){
|
||||
|
|
|
@ -25,8 +25,7 @@ else
|
|||
check = false
|
||||
end
|
||||
|
||||
if( check )
|
||||
have_func("rb_io_stdio_file", "ruby/ruby.h")
|
||||
if check
|
||||
$defs << %[-DRUBY_VERSION=\\"#{RUBY_VERSION}\\"]
|
||||
create_makefile("dl")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue