400-musl-compat.patch (644B)
1 --- a/common/common.h 2 +++ b/common/common.h 3 @@ -50,6 +50,7 @@ 4 #include <signal.h> 5 #include <sys/types.h> 6 #include <sys/stat.h> 7 +#include <sys/uio.h> 8 #include <fcntl.h> 9 10 #if defined(_SUNOS) || defined(_AIX) || defined(_DARWIN) 11 @@ -91,7 +92,9 @@ 12 #include <sys/select.h> 13 14 #include <net/if.h> 15 +#if defined(__GLIBC__) || defined(__UCLIBC__) 16 #include <netinet/if_ether.h> 17 +#endif 18 #ifdef linux 19 #include <netpacket/packet.h> 20 #include <linux/if_tun.h> 21 --- a/common/dn_skipname.c 22 +++ b/common/dn_skipname.c 23 @@ -1,6 +1,8 @@ 24 #include <errno.h> 25 #include <resolv.h> 26 27 +#include <sys/types.h> 28 + 29 /* Ripped from glibc 2.4 sources. */ 30 31 /*