Skip to content

Commit

Permalink
build: fix assert() use in .pb-c.c files
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
eqvinox committed May 3, 2021
1 parent f71e1ff commit 20a4a2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qpb/subdir.am
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 20a4a2e

Please sign in to comment.