From 20a4a2e9e64c656e8896ee0754938905c61d320a Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Mon, 3 May 2021 18:47:32 +0200 Subject: [PATCH] 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 --- qpb/subdir.am | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5