From: David Lamparter Date: Mon, 3 May 2021 16:47:32 +0000 (+0200) Subject: build: fix assert() use in .pb-c.c files X-Git-Tag: base_8.0~65^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=20a4a2e9e64c656e8896ee0754938905c61d320a;p=matthieu%2Ffrr.git 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 --- diff --git a/qpb/subdir.am b/qpb/subdir.am index 4f826355d9..704efc5930 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