summaryrefslogtreecommitdiff
blob: 13dbfd5ef5e3ca0fc574a6724550a50d6da7f96d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 8ea4f7e4eebefa5daa98f0098b031095b98a1918 Mon Sep 17 00:00:00 2001
From: Sergei Golubchik <serg@mariadb.org>
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 <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.