0004-musl.patch 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. Replace use of <net/if_packet.h> with <linux/if_packet.h>.
  2. kernel headers <linux/if_packet.h> already provides the
  3. needed definitions, moreover not all libc implementations
  4. provide if_packet.h e.g. musl
  5. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  6. Upstream-Status: Pending
  7. [From http://cgit.openembedded.org/openembedded-core/plain/meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/musl.patch.]
  8. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  9. Index: irda-utils-0.9.18/irdaping/irdaping.c
  10. ===================================================================
  11. --- irda-utils-0.9.18.orig/irdaping/irdaping.c
  12. +++ irda-utils-0.9.18/irdaping/irdaping.c
  13. @@ -33,7 +33,6 @@
  14. #include <sys/socket.h>
  15. #include <sys/ioctl.h>
  16. #include <net/if.h> /* For struct ifreq */
  17. -#include <net/if_packet.h> /* For struct sockaddr_pkt */
  18. #include <net/if_arp.h> /* For ARPHRD_IRDA */
  19. #include <netinet/if_ether.h> /* For ETH_P_ALL */
  20. #include <netinet/in.h> /* For htons */
  21. @@ -46,6 +45,7 @@
  22. #include <asm/byteorder.h> /* __cpu_to_le32 and co. */
  23. #include <linux/types.h> /* For __u8 and co. */
  24. +#include <linux/if_packet.h> /* For struct sockaddr_pkt */
  25. #include <irda.h>
  26. #ifndef AF_IRDA