summaryrefslogtreecommitdiff
path: root/package/miredo/patches/patch-libtun6_tun6_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-12-28 17:30:36 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-12-28 17:30:36 +0100
commit89551d9a7633d83d45fb22316153dee7cd898fbc (patch)
treefe55cf46df70e534a912831f3288bd9b2400835f /package/miredo/patches/patch-libtun6_tun6_c
parent320e16528ea6a9eba54bac0161e2331093075647 (diff)
parent7051ba973da28f456659ced479c731a61a624a85 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/miredo/patches/patch-libtun6_tun6_c')
-rw-r--r--package/miredo/patches/patch-libtun6_tun6_c15
1 files changed, 15 insertions, 0 deletions
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 <linux/if_tun.h> // TUNSETIFF - Linux tunnel driver
++#else
++#define IFF_TUN 0x0001
++#define TUNSETIFF _IOW('T', 202, int)
++#endif
+ /*
+ * <linux/ipv6.h> conflicts with <netinet/in.h> and <arpa/inet.h>,
+ * so we've got to declare this structure by hand.