140-pppoe_compile_fix.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --- a/pppd/plugins/rp-pppoe/pppoe.h
  2. +++ b/pppd/plugins/rp-pppoe/pppoe.h
  3. @@ -52,11 +52,7 @@
  4. #include <netinet/in.h>
  5. /* Ugly header files on some Linux boxes... */
  6. -#if defined(HAVE_LINUX_IF_H)
  7. -#include <linux/if.h>
  8. -#elif defined(HAVE_NET_IF_H)
  9. #include <net/if.h>
  10. -#endif
  11. #ifdef HAVE_NET_IF_TYPES_H
  12. #include <net/if_types.h>
  13. @@ -84,20 +80,7 @@ typedef unsigned long UINT32_t;
  14. #error Could not find a 32-bit integer type
  15. #endif
  16. -#ifdef HAVE_LINUX_IF_ETHER_H
  17. -#include <linux/if_ether.h>
  18. -#endif
  19. -
  20. -#ifdef HAVE_NETINET_IF_ETHER_H
  21. -#include <sys/types.h>
  22. -
  23. -#ifdef HAVE_SYS_SOCKET_H
  24. -#include <sys/socket.h>
  25. -#endif
  26. -#ifndef HAVE_SYS_DLPI_H
  27. -#include <netinet/if_ether.h>
  28. -#endif
  29. -#endif
  30. +#include <net/ethernet.h>
  31. /* Ethernet frame types according to RFC 2516 */
  32. --- a/pppd/plugins/rp-pppoe/Makefile.linux
  33. +++ b/pppd/plugins/rp-pppoe/Makefile.linux
  34. @@ -33,7 +33,7 @@ pppoe-discovery: pppoe-discovery.o debug
  35. $(CC) $(LDFLAGS) -o pppoe-discovery pppoe-discovery.o debug.o
  36. pppoe-discovery.o: pppoe-discovery.c
  37. - $(CC) $(CFLAGS) -c -o pppoe-discovery.o pppoe-discovery.c
  38. + $(CC) $(CFLAGS) -I../../.. -c -o pppoe-discovery.o pppoe-discovery.c
  39. debug.o: debug.c
  40. $(CC) $(CFLAGS) -c -o debug.o debug.c