summaryrefslogtreecommitdiff
path: root/src/lib/evil
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-04-26 09:09:00 -0400
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-05-06 17:00:52 +0200
commit434a8484d5c7e8d1153277f0379f0a0f90f2c165 (patch)
tree9b1a9ac5cb051293b0f30ce0ea837023828a817c /src/lib/evil
parent1ad1ea84fd5a1b581326922b725b531479b72d4d (diff)
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 <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8729
Diffstat (limited to 'src/lib/evil')
-rw-r--r--src/lib/evil/evil_dlfcn.h12
1 files 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
143 * @ingroup Evil_Dlfcn 143 * @ingroup Evil_Dlfcn
144 */ 144 */
145EAPI void *dlopen(const char* path, int mode); 145EAPI void *dlopen(const char* path, int mode);
146 146#ifndef HAVE_DLOPEN
147#define HAVE_DLOPEN 1
148#endif
147/** 149/**
148 * @brief Close a dynamic-link library. 150 * @brief Close a dynamic-link library.
149 * 151 *
@@ -191,7 +193,9 @@ EAPI int dlclose(void* handle);
191 * @ingroup Evil_Dlfcn 193 * @ingroup Evil_Dlfcn
192 */ 194 */
193EAPI void *dlsym(void* handle, const char* symbol); 195EAPI void *dlsym(void* handle, const char* symbol);
194 196#ifndef HAVE_DLSYM
197#define HAVE_DLSYM 1
198#endif
195#ifdef _GNU_SOURCE 199#ifdef _GNU_SOURCE
196 200
197/** 201/**
@@ -218,7 +222,9 @@ EAPI void *dlsym(void* handle, const char* symbol);
218 * @ingroup Evil_Dlfcn 222 * @ingroup Evil_Dlfcn
219 */ 223 */
220EAPI int dladdr (const void *addr, Dl_info *info); 224EAPI int dladdr (const void *addr, Dl_info *info);
221 225#ifndef HAVE_DLADDR
226#define HAVE_DLADDR 1
227#endif
222#endif /* _GNU_SOURCE */ 228#endif /* _GNU_SOURCE */
223 229
224/** 230/**