summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-19 09:38:40 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-19 09:38:40 +0000
commit658788f7b725cf6ff05f40c23302ab73c63e0de3 (patch)
treea322b7c3785d8f2a2e3e2805cb3e96b77b7e7692
parentfddfc0be0284d6a0db2808a6d0d8f8de47b17eea (diff)
* ext/dl/dl.c (rb_io_to_ptr): fix DragonFlyBSD support.
[ruby-dev:27151] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--ext/dl/dl.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 135aa08..35aacbf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Sep 19 18:35:13 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/dl/dl.c (rb_io_to_ptr): fix DragonFlyBSD support.
+ [ruby-dev:27151]
+
Mon Sep 19 14:17:04 2005 Minero Aoki <aamine@loveruby.net>
* ext/syck/emitter.c (syck_emit): passing an int* value to the
diff --git a/ext/dl/dl.c b/ext/dl/dl.c
index 8972f24..7b52a21 100644
--- a/ext/dl/dl.c
+++ b/ext/dl/dl.c
@@ -558,7 +558,7 @@ rb_io_to_ptr(VALUE self)
fp = fptr->f;
#if defined(__DragonFly__)
- return fp ? rb_dlptr_new(fp, 1, 0) : Qnil;
+ return fp ? rb_dlptr_new(fp, 0, 0) : Qnil;
#else
return fp ? rb_dlptr_new(fp, sizeof(FILE), 0) : Qnil;
#endif