[sheepdog] [PATCH 1/2] sheep/trace/trace.c: fix building with --enable-trace Compiling with --enable-trace gives build error: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../include -DENABLE_TRACE -I../sheep/tracepoint -O2 -O2 -O0 -pg -Wall -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wwrite-strings -Wbad-function-cast -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Wcast-align -DENABLE_LTTNG_UST -D_GNU_SOURCE -D_LGPL_SOURCE -std=gnu99 -c -o trace/trace.o trace/trace.c In file included from trace/trace.c:14:0: /usr/include/bfd.h:35:2: error: #error config.h must be included before this header #error config.h must be included before this header ^
Marcin Mirosław
marcin at mejor.pl
Sun May 24 23:03:12 CEST 2015
Signed-off-by: Marcin MirosÅaw <marcin at mejor.pl>
---
sheep/trace/trace.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sheep/trace/trace.c b/sheep/trace/trace.c
index 57c2b4c..79acc15 100644
--- a/sheep/trace/trace.c
+++ b/sheep/trace/trace.c
@@ -11,6 +11,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
#include <bfd.h>
#include "trace.h"
--
2.3.6
More information about the sheepdog
mailing list