1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/dl/dl.c (rb_io_to_ptr): merged a patch for DragonFly BSD

from Takahiro Kambe <taca@back-street.net>.  [ruby-dev:27023]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2005-09-12 01:51:57 +00:00
parent c1e995c39a
commit 27a4ca932d
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Mon Sep 12 10:45:58 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/dl/dl.c (rb_io_to_ptr): merged a patch for DragonFly BSD
from Takahiro Kambe <taca@back-street.net>. [ruby-dev:27023]
Sun Sep 11 22:05:51 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
* bin/erb (ERB::Main#run): set ERB#filename so that it is used

View file

@ -557,7 +557,11 @@ rb_io_to_ptr(VALUE self)
GetOpenFile(self, fptr);
fp = fptr->f;
#if defined(__DragonFly__)
return fp ? rb_dlptr_new(fp, 1, 0) : Qnil;
#else
return fp ? rb_dlptr_new(fp, sizeof(FILE), 0) : Qnil;
#endif
}
VALUE