You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
638 B

  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,5 +1,6 @@
  22. #include <errno.h>
  23. #include <resolv.h>
  24. +#include <sys/types.h>
  25. /* Ripped from glibc 2.4 sources. */