summaryrefslogtreecommitdiffstats
path: root/qpb/subdir.am
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2021-05-03 18:47:32 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2021-05-03 18:48:33 +0200
commit20a4a2e9e64c656e8896ee0754938905c61d320a (patch)
treed6e3d5e25896c5624d28ad940bb7bd32af63c3df /qpb/subdir.am
parentMerge pull request #8545 from opensourcerouting/assert-our-own (diff)
downloadfrr-20a4a2e9e64c656e8896ee0754938905c61d320a.tar.xz
frr-20a4a2e9e64c656e8896ee0754938905c61d320a.zip
build: fix assert() use in .pb-c.c files
The .pb-c.c files pick up our assert() override, but that needs config.h to be included too, and that needs to go at the very top of the file... Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'qpb/subdir.am')
-rw-r--r--qpb/subdir.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/qpb/subdir.am b/qpb/subdir.am
index 4f826355d..704efc593 100644
--- a/qpb/subdir.am
+++ b/qpb/subdir.am
@@ -44,6 +44,7 @@ am__v_PROTOC_C_1 =
.proto.pb-c.c:
$(AM_V_PROTOC_C)$(PROTOC_C) -I$(top_srcdir) --c_out=$(top_builddir) $^
+ $(AM_V_GEN)$(SED) -e '1i#include "config.h"' -i $@
.pb-c.c.pb-c.h:
@/bin/true