libnet: fix {i686,x86_64}-musl build
This commit is contained in:
parent
fba86330bf
commit
c4cc122130
2 changed files with 24 additions and 1 deletions
|
@ -14,3 +14,26 @@
|
|||
|
||||
#if (HAVE_PACKET_SOCKET)
|
||||
#ifndef SOL_PACKET
|
||||
--- src/libnet_link_linux.c 2018-01-04 18:20:00.809758263 +0100
|
||||
+++ src/libnet_link_linux.c 2018-01-04 18:19:35.515756459 +0100
|
||||
@@ -30,8 +30,8 @@
|
||||
#include <sys/time.h>
|
||||
|
||||
#include <net/if.h>
|
||||
-#include <netinet/if_ether.h>
|
||||
#include <net/if_arp.h>
|
||||
+#include <netinet/if_ether.h>
|
||||
|
||||
#if (HAVE_PACKET_SOCKET)
|
||||
#ifndef SOL_PACKET
|
||||
@@ -43,8 +43,10 @@
|
||||
#else
|
||||
#include <asm/types.h>
|
||||
#include <linux/if_packet.h>
|
||||
+#if defined(__GLIBC__)
|
||||
#include <linux/if_ether.h> /* The L2 protocols */
|
||||
#endif
|
||||
+#endif
|
||||
#endif /* HAVE_PACKET_SOCKET */
|
||||
|
||||
#include "../include/libnet.h"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'libnet'
|
||||
pkgname=libnet
|
||||
version=1.1.6
|
||||
revision=3
|
||||
revision=4
|
||||
build_style=gnu-configure
|
||||
short_desc="A C library for portable packet creation and injection"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||
|
|
Loading…
Reference in a new issue