#!/bin/sh
# Build helper: force C17 semantics.
#
# GCC 15 defaults to C23, where an empty parameter list "()" means "(void)".
# The upstream sources use K&R style declarations (store.c: writev()/nosigio(),
# snntpd.c: a "int (*f)();" function pointer) that only work with the older
# semantics.  Building as C17 (the previous GCC default) restores them.
#
# It is used as CC from debian/rules instead of passing "gcc -std=gnu17"
# directly, because the upstream Makefile expands CC unquoted in
# "cd lib; $(MAKE) all CC=$(CC)" and the embedded space would be word-split
# and fed to make as a bogus option.
exec gcc -std=gnu17 "$@"