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.

31 lines
724 B

  1. --- a/src/common/fakepoll.h
  2. +++ b/src/common/fakepoll.h
  3. @@ -40,11 +40,11 @@
  4. #define POLL_NO_WARN
  5. #define SYS_POLL_NO_WARN
  6. -#ifdef HAVE_SYS_POLL_H
  7. -#include <sys/poll.h>
  8. -#define __FAKEPOLL_H
  9. -#elif HAVE_POLL_H
  10. +#ifdef HAVE_POLL_H
  11. #include <poll.h>
  12. +#define __FAKEPOLL_H
  13. +#elif HAVE_SYS_POLL_H
  14. +#include <sys/poll.h>
  15. #define __FAKEPOLL_H
  16. #endif
  17. --- a/src/common/sendpacket.c
  18. +++ b/src/common/sendpacket.c
  19. @@ -148,10 +148,6 @@
  20. #include "txring.h"
  21. #endif
  22. -#ifndef __GLIBC__
  23. -typedef int socklen_t;
  24. -#endif
  25. -
  26. static sendpacket_t *sendpacket_open_pf(const char *, char *);
  27. static struct tcpr_ether_addr *sendpacket_get_hwaddr_pf(sendpacket_t *);
  28. static int get_iface_index(int fd, const char *device, char *);