summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-02 10:01:57 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-02 10:01:57 +0000
commitf57217cc5212bb7f16a97887a6a39c9f90fd957f (patch)
treee63a8b44c0b8ba48c3b868e8469133998192bbf3
parent9ba59c3e528310ca70641b9a23d369b780226997 (diff)
* dln.c (dln_load): don't specify RTLD_GLOBAL on Interix,
because it caused SEGV when running runner.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--dln.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c4563b6119..a336ee8aa1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Feb 2 18:45:50 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * dln.c (dln_load): don't specify RTLD_GLOBAL on Interix,
+ because it caused SEGV when running runner.rb.
+
Mon Feb 2 01:54:00 2004 Tanaka Akira <akr@m17n.org>
* lib/pp.rb (Struct#pretty_print): make it 1.8 style.
diff --git a/dln.c b/dln.c
index 67ca195f60..76f0743358 100644
--- a/dln.c
+++ b/dln.c
@@ -1313,6 +1313,9 @@ dln_load(file)
#ifndef RTLD_LAZY
# define RTLD_LAZY 1
#endif
+#ifdef __INTERIX
+# undef RTLD_GLOBAL
+#endif
#ifndef RTLD_GLOBAL
# define RTLD_GLOBAL 0
#endif