From e92cc097658405fdb52c80254b933424f8c1f99e Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Thu, 22 Feb 2018 15:58:07 +0100 Subject: 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 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 +static ElfW(Addr) offset= 0; +#else +#define offset 0 +#endif + /** finds a file name, a line number, and a function name corresponding to addr. -- cgit v1.2.1