1
0

400-musl-compat.patch 644 B

12345678910111213141516171819202122232425262728293031
  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. #if defined(_SUNOS) || defined(_AIX) || defined(_DARWIN)
  10. @@ -91,7 +92,9 @@
  11. #include <sys/select.h>
  12. #include <net/if.h>
  13. +#if defined(__GLIBC__) || defined(__UCLIBC__)
  14. #include <netinet/if_ether.h>
  15. +#endif
  16. #ifdef linux
  17. #include <netpacket/packet.h>
  18. #include <linux/if_tun.h>
  19. --- a/common/dn_skipname.c
  20. +++ b/common/dn_skipname.c
  21. @@ -1,6 +1,8 @@
  22. #include <errno.h>
  23. #include <resolv.h>
  24. +#include <sys/types.h>
  25. +
  26. /* Ripped from glibc 2.4 sources. */
  27. /*