Control: tag -1 patch
thanks

On 2024-03-13 12:54, Lucas Nussbaum wrote:
> > gcc -DHAVE_CONFIG_H -I. -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2  -O3 -g 
> > -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
> > -fstack-protector-strong -fstack-clash-protection -Wformat 
> > -Werror=format-security -fcf-protection -c `test -f 'netread.c' || echo 
> > './'`netread.c
> > netread.c: In function ‘usage’:
> > netread.c:69:5: error: implicit declaration of function ‘fprintf’ 
> > [-Werror=implicit-function-declaration]
> >    69 |     fprintf(stderr,
> >       |     ^~~~~~~
> > netread.c:66:1: note: include ‘<stdio.h>’ or provide a declaration of 
> > ‘fprintf’

It turns out that netread.c does include stdio.h, but only if
STDC_HEADERS is defined.

The following in debian/rules fixes the bug:

 export DEB_CPPFLAGS_MAINT_APPEND=-DSTDC_HEADERS

Reply via email to