found via GNU autoconf and its AC_CHECK_HEADERS Kudos go to <https://stackoverflow.com/q/35359456>. As workaround, I am going to change my configure script to use AC_HEADER_RESOLV.
--- src/include/resolv.h +++ src/include/resolv.h @@ -92,2 +92,3 @@ #include <sys/socket.h> +#include <netinet/in.h> #include <stdio.h>