0001-avoid-kernel-if_ether.h.patch 819 B

123456789101112131415161718192021222324252627282930
  1. From 3984adc4976de7553f51e0cf4de1e18c373b332b Mon Sep 17 00:00:00 2001
  2. From: Baruch Siach <baruch@tkos.co.il>
  3. Date: Thu, 15 Dec 2016 15:10:19 +0200
  4. Subject: [PATCH] Avoid redefinition of struct ethhdr
  5. This is a workaround to the if_ether.h conflict between musl and the kernel.
  6. Both define struct ethhdr.
  7. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
  8. ---
  9. include/netinet/if_ether.h | 3 +++
  10. 1 file changed, 3 insertions(+)
  11. diff --git a/include/netinet/if_ether.h b/include/netinet/if_ether.h
  12. index 11ee65823f93..cfe1949d3371 100644
  13. --- a/include/netinet/if_ether.h
  14. +++ b/include/netinet/if_ether.h
  15. @@ -1,6 +1,9 @@
  16. #ifndef _NETINET_IF_ETHER_H
  17. #define _NETINET_IF_ETHER_H
  18. +/* Suppress kernel if_ether.h header inclusion */
  19. +#define _LINUX_IF_ETHER_H
  20. +
  21. #include <stdint.h>
  22. #include <sys/types.h>
  23. --
  24. 2.10.2