summarylogtreecommitdiffstats
path: root/bfdfix.patch
blob: c3e7d69a3cc67497b5b90977872fa854fb680590 (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
diff --git a/tools/sepdebugcrcfix.c b/tools/sepdebugcrcfix.c
index cd7fa02..03db7af 100644
--- a/tools/sepdebugcrcfix.c
+++ b/tools/sepdebugcrcfix.c
@@ -28,7 +28,19 @@
 #include <error.h>
 #include <libelf.h>
 #include <gelf.h>
+#ifndef PACKAGE
+#define PACKAGE
+#ifndef PACKAGE_VERSION
+#define PACKAGE_VERSION
 #include <bfd.h>
+#undef PACKAGE_VERSION
+#else
+#include <bfd.h>
+#endif
+#undef PACKAGE
+#else
+#include <bfd.h>
+#endif
 
 #define _(x) x
 #define static_assert(expr) \