void-packages/srcpkgs/rpm/patches/fixbfd.patch
maxice8 baf1e5ba7f New package: rpm-4.13.0.2.
Closes: #8811 [via git-merge-pr]
2017-12-18 06:15:30 +01:00

23 lines
391 B
Diff

--- tools/sepdebugcrcfix.c
+++ 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) \