From 67e222603986f4e8ef6bc1d2ac588242eafa5513 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 26 Apr 2019 09:09:00 -0400 Subject: [PATCH] evil: explicitly define HAVE_DL$FUNC for dl functions these would normally be set by the build system when detecting the system's libdl functions, but since we are providing them then we must advertise the functionality to ensure that the right codepaths will be used Reviewed-by: Marcel Hollerbach Differential Revision: https://phab.enlightenment.org/D8729 --- src/lib/evil/evil_dlfcn.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/lib/evil/evil_dlfcn.h b/src/lib/evil/evil_dlfcn.h index af18ed1..c6d5d1a 100644 --- a/src/lib/evil/evil_dlfcn.h +++ b/src/lib/evil/evil_dlfcn.h @@ -143,7 +143,9 @@ struct Dl_info * @ingroup Evil_Dlfcn */ EAPI void *dlopen(const char* path, int mode); - +#ifndef HAVE_DLOPEN +#define HAVE_DLOPEN 1 +#endif /** * @brief Close a dynamic-link library. * @@ -191,7 +193,9 @@ EAPI int dlclose(void* handle); * @ingroup Evil_Dlfcn */ EAPI void *dlsym(void* handle, const char* symbol); - +#ifndef HAVE_DLSYM +#define HAVE_DLSYM 1 +#endif #ifdef _GNU_SOURCE /** @@ -218,7 +222,9 @@ EAPI void *dlsym(void* handle, const char* symbol); * @ingroup Evil_Dlfcn */ EAPI int dladdr (const void *addr, Dl_info *info); - +#ifndef HAVE_DLADDR +#define HAVE_DLADDR 1 +#endif #endif /* _GNU_SOURCE */ /** -- 2.7.4