summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <vicentiu@mariadb.org>2018-01-19 18:04:51 +0200
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2018-01-19 18:05:24 +0200
commit6c60c809bb90e229f6f6c09ea2dbb9c87e2759ef (patch)
tree7d66a16f15d8fd8ef72679781074f5c53f1fa6f8 /include
parent17f64b362a3d7de430070e8535eaeb7b68a67a97 (diff)
downloadmariadb-git-6c60c809bb90e229f6f6c09ea2dbb9c87e2759ef.tar.gz
Add dummy defintion for Dl_info in case we're missing dladdr
Diffstat (limited to 'include')
-rw-r--r--include/my_global.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h
index 767ac3e459e..ab7e485a1a0 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -1375,6 +1375,8 @@ static inline char *dlerror(void)
#endif
#ifndef HAVE_DLADDR
#define dladdr(A, B) 0
+/* Dummy definition in case we're missing dladdr() */
+typedef int Dl_info;
#endif
#else
#define dlerror() "No support for dynamic loading (static build?)"
@@ -1382,6 +1384,8 @@ static inline char *dlerror(void)
#define dlsym(A,B) 0
#define dlclose(A) 0
#define dladdr(A, B) 0
+/* Dummy definition in case we're missing dladdr() */
+typedef int Dl_info;
#endif
/*