aboutsummaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-24 13:06:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-24 13:06:58 +0000
commit69f47dd0e8bd7435ae9b1e8fb94ac6fd8ec06a7a (patch)
tree74e23b8f143cf5b3525a1e846c28213c4609f387 /ruby.c
parentc3ad34c7fa7222ef6003ca83a3d9b17c80caa9ef (diff)
downloadruby-69f47dd0e8bd7435ae9b1e8fb94ac6fd8ec06a7a.tar.gz
ruby.c: only for load-relative
* ruby.c (dladdr_path): used only when load-relative is enabled. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index 51a606f8bc..6980e38522 100644
--- a/ruby.c
+++ b/ruby.c
@@ -364,7 +364,7 @@ ruby_init_loadpath(void)
ruby_init_loadpath_safe(0);
}
-#if defined(HAVE_DLADDR)
+#if defined(LOAD_RELATIVE) && defined(HAVE_DLADDR)
static VALUE
dladdr_path(const void* addr)
{