Browse Source

fixup! FreeBSD: fix build.

pull/2938/head
Rusty Russell 6 years ago
committed by Christian Decker
parent
commit
4f937ea1f0
  1. 2
      tools/mockup.sh

2
tools/mockup.sh

@ -20,6 +20,8 @@ for SYMBOL; do
# has notleak_ as a declaration, and then an inline).
WHERE=$(grep -nH "^[a-zA-Z0-9_ (),]* [*]*$SYMBOL(" ./*/*.h | head -n1)
if [ x"$WHERE" != x ]; then
# \n on RHS is a GNU extension, and we want to work on FreeBSD
# shellcheck disable=SC1004
STUB='\
{ fprintf(stderr, "'$SYMBOL' called!\\n"); abort(); }'
else

Loading…
Cancel
Save