100-musl-compat.patch 587 B

1234567891011121314151617181920212223
  1. --- a/sysincludes.h
  2. +++ b/sysincludes.h
  3. @@ -79,6 +79,9 @@
  4. #endif
  5. #if HAVE_NETDB_H && (_WITH_IP4 || _WITH_IP6)
  6. #include <netdb.h> /* struct hostent, gethostbyname() */
  7. +#if !(__UCLIBC__ || __GLIBC__)
  8. +#define NETDB_INTERNAL -1
  9. +#endif
  10. #endif
  11. #if HAVE_SYS_UN_H && WITH_UNIX
  12. #include <sys/un.h> /* struct sockaddr_un, unix domain sockets */
  13. @@ -139,8 +142,10 @@
  14. #include <netpacket/packet.h>
  15. #endif
  16. #if HAVE_NETINET_IF_ETHER_H
  17. +#if defined(__UCLIBC__) || defined(__GLIBC__)
  18. #include <netinet/if_ether.h>
  19. #endif
  20. +#endif
  21. #if HAVE_LINUX_IF_TUN_H
  22. #include <linux/if_tun.h>
  23. #endif