summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormonty@mysql.com <>2005-11-05 14:10:48 +0200
committermonty@mysql.com <>2005-11-05 14:10:48 +0200
commitd9a687758cc9ca979b9fdff7709f4b6f382be960 (patch)
tree6db34c6476395dccb1cb8d2058674d36bfabd893 /include
parentcdf64f0f5724077d58158ecc8894cfff85dbc9c0 (diff)
downloadmariadb-git-d9a687758cc9ca979b9fdff7709f4b6f382be960.tar.gz
Added inclusion of dlfcn.h from old 5.1 tree
Diffstat (limited to 'include')
-rw-r--r--include/my_global.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h
index a26c02a687e..55a1b6c2d02 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -1361,4 +1361,23 @@ do { doubleget_union _tmp; \
#define NO_EMBEDDED_ACCESS_CHECKS
#endif
+#ifdef HAVE_DLOPEN
+#if defined(__WIN__)
+#define dlsym(lib, name) GetProcAddress((HMODULE)lib, name)
+#define dlopen(libname, unused) LoadLibraryEx(libname, NULL, 0)
+#define dlclose(lib) FreeLibrary((HMODULE)lib)
+#elif defined(HAVE_DLFCN_H)
+#include <dlfcn.h>
+#endif
+#endif
+
+/* FreeBSD 2.2.2 does not define RTLD_NOW) */
+#ifndef RTLD_NOW
+#define RTLD_NOW 1
+#endif
+
+#ifndef HAVE_DLERROR
+#define dlerror() ""
+#endif
+
#endif /* my_global_h */