evil: explicitly define HAVE_DL$FUNC for dl functions
authorMike Blumenkrantz <zmike@samsung.com>
Fri, 26 Apr 2019 13:09:00 +0000 (09:09 -0400)
committerHermet Park <hermetpark@gmail.com>
Wed, 8 May 2019 04:32:33 +0000 (13:32 +0900)
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

src/lib/evil/evil_dlfcn.h

index af18ed1..c6d5d1a 100644 (file)
@@ -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 */
 
 /**