From: Jérémie Galarneau Date: Thu, 6 May 2021 22:43:44 +0000 (-0400) Subject: Build fix: filter-grammar-test: incorrect inclusion flag X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5c45dcdaa5b352ba03074a5f472ad6988ea4fcda;p=lttng-tools.git Build fix: filter-grammar-test: incorrect inclusion flag Including src/common causes LTTng files that clash with system headers to be included before the system headers and breaks the build on multiple platforms and architectures. Signed-off-by: Jérémie Galarneau Change-Id: Iff7b6e7000d907dc076a467d223c91569b783861 --- diff --git a/src/common/Makefile.am b/src/common/Makefile.am index e6a88a1fa..317ce37ba 100644 --- a/src/common/Makefile.am +++ b/src/common/Makefile.am @@ -184,7 +184,6 @@ noinst_PROGRAMS = filter-grammar-test filter_grammar_test_SOURCES = filter-grammar-test.c filter_grammar_test_LDADD = \ libcommon.la -filter_grammar_test_CFLAGS = -I $(top_builddir)/src/common all-local: @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ diff --git a/src/common/filter-grammar-test.c b/src/common/filter-grammar-test.c index bd21cf877..aec0a5c67 100644 --- a/src/common/filter-grammar-test.c +++ b/src/common/filter-grammar-test.c @@ -17,9 +17,9 @@ #include #include -#include "common/bytecode/bytecode.h" -#include "filter/filter-ast.h" -#include "filter/filter-parser.h" +#include +#include +#include /* For error.h */ int lttng_opt_quiet = 1;