From 61ee590fc492acbc9f8d4af02b5cdac8e21b964d Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 23 Dec 2013 17:28:56 +0100 Subject: fix musl compile --- package/miredo/patches/patch-libtun6_tun6_c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 package/miredo/patches/patch-libtun6_tun6_c (limited to 'package/miredo/patches') diff --git a/package/miredo/patches/patch-libtun6_tun6_c b/package/miredo/patches/patch-libtun6_tun6_c new file mode 100644 index 000000000..2bddcfb06 --- /dev/null +++ b/package/miredo/patches/patch-libtun6_tun6_c @@ -0,0 +1,15 @@ +--- miredo-1.2.6.orig/libtun6/tun6.c 2012-09-12 15:03:59.000000000 +0200 ++++ miredo-1.2.6/libtun6/tun6.c 2013-12-23 17:23:42.000000000 +0100 +@@ -53,7 +53,12 @@ + const char os_driver[] = "Linux"; + # define USE_LINUX 1 + ++#if defined(__GLIBC__) + # include // TUNSETIFF - Linux tunnel driver ++#else ++#define IFF_TUN 0x0001 ++#define TUNSETIFF _IOW('T', 202, int) ++#endif + /* + * conflicts with and , + * so we've got to declare this structure by hand. -- cgit v1.2.3