iouyap: unbreak musl

This commit is contained in:
Alessio Sergi 2017-08-21 13:12:21 +02:00
parent 781a84145d
commit c74244b803
2 changed files with 32 additions and 6 deletions

View file

@ -0,0 +1,32 @@
--- iouyap.c.orig
+++ iouyap.c
@@ -35,7 +35,9 @@
#include <linux/if_tun.h>
#include <arpa/inet.h>
#include <netpacket/packet.h>
+#if HAVE_NETINET_IF_ETHER_H && !HAVE_LINUX_IF_TUN_H
#include <net/ethernet.h>
+#endif
#include <netdb.h>
#include <net/if_arp.h>
#include <linux/rtnetlink.h>
--- iouyap.h.orig
+++ iouyap.h
@@ -24,6 +24,7 @@
#include <netinet/in.h>
#include <errno.h>
#include <sys/un.h>
+#include <sys/types.h>
#define NAME "iouyap"
#define VERSION "0.97.0"
--- netmap.c.orig
+++ netmap.c
@@ -28,6 +28,7 @@
#include <string.h>
#include <netdb.h>
#include <sys/socket.h>
+#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>

View file

@ -11,12 +11,6 @@ homepage="https://github.com/GNS3/iouyap"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
checksum=181850a4ce73a4d4035f9eb39b2656ae31d360f18b577ee65f5149132da3eccf
case $XBPS_TARGET_MACHINE in
*-musl) broken=yes # Uses GNU Short types
;;
esac
do_install() {
vbin iouyap
}