]> git.puffer.fish Git - mirror/frr.git/commitdiff
build: fix assert() use in .pb-c.c files 8613/head
authorDavid Lamparter <equinox@opensourcerouting.org>
Mon, 3 May 2021 16:47:32 +0000 (18:47 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Mon, 3 May 2021 16:48:33 +0000 (18:48 +0200)
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>
qpb/subdir.am

index 4f826355d9241ad2f20243c83e162f492c252bf5..704efc5930f54d986408c5ff4391e28473ef8fc2 100644 (file)
@@ -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