New versions of bfd.h break build on Linux and Mac OS systems. Including
bfd.h requires constants to be defined, that are provided by autoconf.
Including autoconf.h into the files fixes the error.
>From a6f4e5e771a9fa766e2b15b99a945203d0ec05e6 Mon Sep 17 00:00:00 2001
From: Martin Hofmann <martin.hofm...@studium.uni-erlangen.de>
Date: Fri, 14 Mar 2014 15:41:26 +0100
Subject: [PATCH] Fix build error if ENABLE_TARGET_PROGRAMMING is on
New versions of bfd.h break build on Linux and Mac OS systems. Including
bfd.h requires constants to be defined, that are provided by autoconf.
Including autoconf.h into the files fixes the error.
---
avarice/src/jtag2prog.cc | 1 +
avarice/src/jtagprog.cc | 1 +
2 files changed, 2 insertions(+)
diff --git a/avarice/src/jtag2prog.cc b/avarice/src/jtag2prog.cc
index 1c75a80..a374818 100644
--- a/avarice/src/jtag2prog.cc
+++ b/avarice/src/jtag2prog.cc
@@ -38,6 +38,7 @@
#include <math.h>
#if ENABLE_TARGET_PROGRAMMING
+# include "autoconf.h"
# include <bfd.h>
#endif
diff --git a/avarice/src/jtagprog.cc b/avarice/src/jtagprog.cc
index bc573ef..7f701fb 100644
--- a/avarice/src/jtagprog.cc
+++ b/avarice/src/jtagprog.cc
@@ -37,6 +37,7 @@
#include <math.h>
#if ENABLE_TARGET_PROGRAMMING
+# include "autoconf.h"
# include <bfd.h>
#endif
--
1.9.0
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
avarice-user mailing list
avarice-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avarice-user