zmike pushed a commit to branch efl-1.22.

http://git.enlightenment.org/core/efl.git/commit/?id=81703d1a5bc813e7e0c2abba798e47dbd2c49583

commit 81703d1a5bc813e7e0c2abba798e47dbd2c49583
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Apr 26 09:09:00 2019 -0400

    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 <[email protected]>
    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 af18ed1ff9..c6d5d1acf2 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 */
 
 /**

-- 


Reply via email to