aboutsummaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
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)
{