mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
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>
This commit is contained in:
parent
0e80ea2c70
commit
52cb20730a
@ -18,11 +18,9 @@ static struct dl_list active_references =
|
|||||||
|
|
||||||
#ifdef WPA_TRACE_BFD
|
#ifdef WPA_TRACE_BFD
|
||||||
#include <bfd.h>
|
#include <bfd.h>
|
||||||
#ifdef __linux__
|
|
||||||
#include <demangle.h>
|
#define DMGL_PARAMS (1 << 0)
|
||||||
#else /* __linux__ */
|
#define DMGL_ANSI (1 << 1)
|
||||||
#include <libiberty/demangle.h>
|
|
||||||
#endif /* __linux__ */
|
|
||||||
|
|
||||||
static char *prg_fname = NULL;
|
static char *prg_fname = NULL;
|
||||||
static bfd *cached_abfd = NULL;
|
static bfd *cached_abfd = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user