From 2713060e611362fd063085dca759444f60d69e0b Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 3 Jun 2017 12:47:11 +0000 Subject: ruby.c: dladdr_path is not used on cygwin * ruby.c (dladdr_path): dladdr is provided on recent cygwin, but GetModuleFileNameW is used instead of it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index cf13eee20a..273fd4d1c4 100644 --- a/ruby.c +++ b/ruby.c @@ -439,7 +439,7 @@ ruby_init_loadpath(void) ruby_init_loadpath_safe(0); } -#if defined(LOAD_RELATIVE) && defined(HAVE_DLADDR) +#if defined(LOAD_RELATIVE) && defined(HAVE_DLADDR) && !defined(__CYGWIN__) static VALUE dladdr_path(const void* addr) { -- cgit v1.2.3