Gentoo (and other musl distributions) are carrying a patch to fix headers in order to build with musl libc, eg. https://gitweb.gentoo.org/proj/musl.git/tree/sys-apps/net-tools/files/net-tools-fix-headers-r1.patch .