diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-02-22 15:58:07 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-02-22 16:46:11 +0100 |
commit | e92cc097658405fdb52c80254b933424f8c1f99e (patch) | |
tree | 9ccbccc1b4364949344bfc9d61fe6aab3e24900e | |
parent | e4a73acc63baa2180bf63f43be0f6c4ede335789 (diff) | |
download | mariadb-git-e92cc097658405fdb52c80254b933424f8c1f99e.tar.gz |
MDEV-15345 Compilation fails to build my_addr_resolve.c
fix the compilation error.
no support for plugins yet.
-rw-r--r-- | mysys/my_addr_resolve.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mysys/my_addr_resolve.c b/mysys/my_addr_resolve.c index 10f8552f226..84bff47d1a9 100644 --- a/mysys/my_addr_resolve.c +++ b/mysys/my_addr_resolve.c @@ -49,6 +49,13 @@ static const char *strip_path(const char *s) static bfd *bfdh= 0; static asymbol **symtable= 0; +#if defined(HAVE_LINK_H) && defined(HAVE_DLOPEN) +#include <link.h> +static ElfW(Addr) offset= 0; +#else +#define offset 0 +#endif + /** finds a file name, a line number, and a function name corresponding to addr. |