Skip to content

Commit e92cc09

Browse files
committed
MDEV-15345 Compilation fails to build my_addr_resolve.c
fix the compilation error. no support for plugins yet.
1 parent e4a73ac commit e92cc09

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mysys/my_addr_resolve.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ static const char *strip_path(const char *s)
4949
static bfd *bfdh= 0;
5050
static asymbol **symtable= 0;
5151

52+
#if defined(HAVE_LINK_H) && defined(HAVE_DLOPEN)
53+
#include <link.h>
54+
static ElfW(Addr) offset= 0;
55+
#else
56+
#define offset 0
57+
#endif
58+
5259
/**
5360
finds a file name, a line number, and a function name corresponding to addr.
5461

0 commit comments

Comments
 (0)