blob: 737f10ce20056fe21b2978c7e22042ce468719b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
https://groups.google.com/d/msg/bitblaze-users/Zpg7Ddzngns/o7LNnR0qqxwJ
Index: libasmir/src/disasm/asm_program.cpp
===================================================================
--- a/libasmir/src/disasm/asm_program.cpp (older version)
+++ b/libasmir/src/disasm/asm_program.cpp (fixed version)
@@ -7,6 +7,11 @@
#include "debug.h"
#include "asm_program.h"
#include "objdump.h"
+/* Some versions of glibc and the binutils libiberty library give
+ conflicting prototypes for basename(). We don't use that function
+ anyway, but to work around the problem, make libliberty.h think
+ that it has already been declared. */
+#define HAVE_DECL_BASENAME 1
#include "libiberty.h"
|