summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Scherer <gabriel.scherer@gmail.com>2014-08-15 13:19:23 +0000
committerGabriel Scherer <gabriel.scherer@gmail.com>2014-08-15 13:19:23 +0000
commit1a87dee8e3d7c895d2752ab65f836b9149160ddc (patch)
tree342730e41073a16ae8da479731da2963aaff6165
parent6e08943af9995bc4118498de66dca72f956f66e0 (diff)
downloadocaml-1a87dee8e3d7c895d2752ab65f836b9149160ddc.tar.gz
tools/objinfo: workaround change in binutils' <bfd.h>
(Report and fix by Christopher Zimmerman) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15089 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--tools/objinfo_helper.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/objinfo_helper.c b/tools/objinfo_helper.c
index 58dfd2d459..a8c79bd39d 100644
--- a/tools/objinfo_helper.c
+++ b/tools/objinfo_helper.c
@@ -17,7 +17,12 @@
#ifdef HAS_LIBBFD
#include <stdlib.h>
#include <string.h>
+
+// PACKAGE: protect against binutils change
+// https://sourceware.org/bugzilla/show_bug.cgi?id=14243
+#define PACKAGE "ocamlobjinfo"
#include <bfd.h>
+#undef PACKAGE
int main(int argc, char ** argv)
{