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
* @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.
*
* @ingroup Evil_Dlfcn
*/
EAPI void *dlsym(void* handle, const char* symbol);
-
+#ifndef HAVE_DLSYM
+#define HAVE_DLSYM 1
+#endif
#ifdef _GNU_SOURCE
/**
* @ingroup Evil_Dlfcn
*/
EAPI int dladdr (const void *addr, Dl_info *info);
-
+#ifndef HAVE_DLADDR
+#define HAVE_DLADDR 1
+#endif
#endif /* _GNU_SOURCE */
/**