From 8ea4f7e4eebefa5daa98f0098b031095b98a1918 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Thu, 22 Feb 2018 15:58:07 +0100 Subject: [PATCH] MDEV-15345 Compilation fails to build my_addr_resolve.c fix the compilation error. no support for plugins yet. --- mysys/my_addr_resolve.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mysys/my_addr_resolve.c b/mysys/my_addr_resolve.c index 10f8552f226b..84bff47d1a93 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 +static ElfW(Addr) offset= 0; +#else +#define offset 0 +#endif + /** finds a file name, a line number, and a function name corresponding to addr.