aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-04-18 16:07:35 (GMT)
committerJouni Malinen <j@w1.fi>2014-04-25 16:27:48 (GMT)
commit52cb20730a475b732d2746cb64a1c2c286980b85 (patch)
tree42836214c0ff591c4c4b281d3c2b59032c036441 /src/utils
parent0e80ea2c70318232b406e9100a487b1ddbc2c754 (diff)
downloadhostap-52cb20730a475b732d2746cb64a1c2c286980b85.zip
hostap-52cb20730a475b732d2746cb64a1c2c286980b85.tar.gz
hostap-52cb20730a475b732d2746cb64a1c2c286980b85.tar.bz2
trace: Replace demangle.h with internal defines
It looks like the demangle.h from binutils-dev is not installed that commonly anymore. Since we need only two defines from that file, replace the header file with those defines to make it easier to build with WPA_TRACE_BFD=y. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/trace.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/utils/trace.c b/src/utils/trace.c
index 94440f2..6044f5f 100644
--- a/src/utils/trace.c
+++ b/src/utils/trace.c
@@ -18,11 +18,9 @@ static struct dl_list active_references =
#ifdef WPA_TRACE_BFD
#include <bfd.h>
-#ifdef __linux__
-#include <demangle.h>
-#else /* __linux__ */
-#include <libiberty/demangle.h>
-#endif /* __linux__ */
+
+#define DMGL_PARAMS (1 << 0)
+#define DMGL_ANSI (1 << 1)
static char *prg_fname = NULL;
static bfd *cached_abfd = NULL;