Avoid dangling pointer on cygwin
This commit is contained in:
parent
f1e923631c
commit
9c8c140d73
Notes:
git
2024-10-25 11:52:51 +00:00
2
dln.c
2
dln.c
@ -284,7 +284,7 @@ dln_incompatible_func(void *handle, const char *funcname, void *const fp, const
|
||||
void *ex = dlsym(handle, funcname);
|
||||
if (!ex) return false;
|
||||
if (ex == fp) return false;
|
||||
# if defined(HAVE_DLADDR)
|
||||
# if defined(HAVE_DLADDR) && !defined(__CYGWIN__)
|
||||
Dl_info dli;
|
||||
if (dladdr(ex, &dli)) {
|
||||
*libname = dli.dli_fname;
|
||||
|
Loading…
x
Reference in New Issue
Block a user