summaryrefslogtreecommitdiff
path: root/package/miredo
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-01-11 12:29:23 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-01-11 12:29:23 +0100
commit407f9b8fde3ad9cc55f39f7a548cde6056dab494 (patch)
tree0375ea8ddab3502bf6883066f43fc7e328d5c704 /package/miredo
parent2ecefcf609e484d04d1546581191831e07ad71ec (diff)
parentabb858ae43374dc13a5fcef19b9e0ba9442013bb (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/miredo')
-rw-r--r--package/miredo/Makefile2
-rw-r--r--package/miredo/patches/patch-libtun6_tun6_c15
2 files changed, 16 insertions, 1 deletions
diff --git a/package/miredo/Makefile b/package/miredo/Makefile
index 87aecf3e4..45e1ad42b 100644
--- a/package/miredo/Makefile
+++ b/package/miredo/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= miredo
PKG_VERSION:= 1.2.6
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 5bcdbaced54f40b6cb1e9c9a8dbac411
PKG_DESCR:= A Teredo client and relay daemon
PKG_SECTION:= ipv6
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.