pierre-philipp braun <[email protected]> writes:

> (solved) I checked pkgsrc/net/nsd/Makefile again and 
> `CPPFLAGS="-D_OPENBSD_SOURCE"` did the trick
>
> .if ${OPSYS} == "NetBSD"
> # For reallocarray(3)
> CPPFLAGS+=      -D_OPENBSD_SOURCE
> .endif

If there isn't an upstream bug, could you file one?   It seems that
defining _OPENBSD_SOURCE is not really the right thing to do (assuming
you are building on NetBSD), but was expedient to avoid a more intrusive
fix.

Reply via email to