]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
trace: Replace demangle.h with internal defines
authorJouni Malinen <j@w1.fi>
Fri, 18 Apr 2014 16:07:35 +0000 (19:07 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 25 Apr 2014 16:27:48 +0000 (19:27 +0300)
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>
src/utils/trace.c

index 94440f2f9726d502b5f59ed52b0f50f346d75c6c..6044f5f724ab68754307adcd7348da8454ce007c 100644 (file)
@@ -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;