dns/dnsmasq-devel: harden build
MFH: 2025Q3 (cherry picked from commit f6df9faf351879564d5c94e9c2048269527cedd6)