From 9b482cda1ede97d7b433b0f1db3ed34d30b359e7 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sun, 5 Mar 2017 18:39:12 +0100 Subject: [PATCH] ivars.c, enable getting the dll address for CYGWIN CYGWIN does not vae dladdr(), but may use Winapi functions --- src/misc/ivars.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/misc/ivars.c b/src/misc/ivars.c index 75673b8da..cf080fb0b 100644 --- a/src/misc/ivars.c +++ b/src/misc/ivars.c @@ -2,7 +2,7 @@ Copyright 1991 Regents of the University of California. All rights reserved. **********/ -#if defined(__MINGW32__) || defined(_MSC_VER) +#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__CYGWIN__) #include #endif @@ -18,7 +18,9 @@ char *Inp_Path; char *Outp_Path; #if defined (SHARED_MODULE) && defined (HAS_RELPATH) -#if defined(__MINGW32__) || defined(_MSC_VER) +#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__CYGWIN__) + +/* CYGWIN here, because it does not have dladdr() */ static char * get_abs_path(void)