https://bugs.winehq.org/show_bug.cgi?id=40865
--- Comment #11 from Adrien Fernandes adrien_fernandes2@hotmail.com --- A NetBSD developer temporarily added this to the Makefile of our pkgsrc package.
CONFIGURE_ARGS.NetBSD+= wine_cv_linux_gethostbyname_r_6=no
It seems to do the job but the developer also told me that it could creates some new problems about resolving hostnames (no problem actually on Steam).