0001-Move-netinet-in.h-above-linux-header-includes.patch 532 B

12345678910111213141516171819202122
  1. diff --git a/pppd/plugins/rp-pppoe/pppoe.h b/pppd/plugins/rp-pppoe/pppoe.h
  2. index 9ab2eee..b827620 100644
  3. --- a/pppd/plugins/rp-pppoe/pppoe.h
  4. +++ b/pppd/plugins/rp-pppoe/pppoe.h
  5. @@ -47,6 +47,8 @@
  6. #include <sys/socket.h>
  7. #endif
  8. +#include <netinet/in.h>
  9. +
  10. /* Ugly header files on some Linux boxes... */
  11. #if defined(HAVE_LINUX_IF_H)
  12. #include <linux/if.h>
  13. @@ -84,8 +86,6 @@ typedef unsigned long UINT32_t;
  14. #include <linux/if_ether.h>
  15. #endif
  16. -#include <netinet/in.h>
  17. -
  18. #ifdef HAVE_NETINET_IF_ETHER_H
  19. #include <sys/types.h>