libnet: unbreak musl

This commit is contained in:
jbu 2015-08-07 15:41:31 +02:00
parent e30d13ea88
commit 7e1cfb8400
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,16 @@
--- src/libnet_link_linux.c 2012-03-19 17:59:50.000000000 +0100
+++ src/libnet_link_linux.c 2015-08-07 15:36:24.378946840 +0200
@@ -30,13 +30,8 @@
#include <sys/time.h>
#include <net/if.h>
-#if (__GLIBC__)
#include <netinet/if_ether.h>
#include <net/if_arp.h>
-#else
-#include <linux/if_arp.h>
-#include <linux/if_ether.h>
-#endif
#if (HAVE_PACKET_SOCKET)
#ifndef SOL_PACKET

View File

@ -1,7 +1,7 @@
# Template file for 'libnet'
pkgname=libnet
version=1.1.6
revision=2
revision=3
build_style=gnu-configure
short_desc="A C library for portable packet creation and injection"
maintainer="Juan RP <xtraeme@voidlinux.eu>"