ivars.c, enable getting the dll address for CYGWIN CYGWIN does not vae dladdr(), but may use Winapi functions

This commit is contained in:
h_vogt 2017-03-05 18:39:12 +01:00 committed by rlar
parent db8d24da36
commit 9b482cda1e
1 changed files with 4 additions and 2 deletions

View File

@ -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 <Windows.h>
#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)