summaryrefslogtreecommitdiff
path: root/package/socat/patches/patch-xio-tun_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-01-06 09:53:25 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-01-06 09:53:25 +0100
commit2288ec26df8e47d9b699e46eecd05eb3570f03a0 (patch)
tree1d204b70e027fd737f6aae1b7308ae959f5bd0b9 /package/socat/patches/patch-xio-tun_c
parent45e7808c41c2e66266f738aa5eff70ce18cc04ac (diff)
parent667bc9e981847a1d117a2fc7110948075a268bdd (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/socat/patches/patch-xio-tun_c')
-rw-r--r--package/socat/patches/patch-xio-tun_c15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/socat/patches/patch-xio-tun_c b/package/socat/patches/patch-xio-tun_c
new file mode 100644
index 000000000..2ad23eb21
--- /dev/null
+++ b/package/socat/patches/patch-xio-tun_c
@@ -0,0 +1,15 @@
+--- socat-1.7.2.2.orig/xio-tun.c 2011-12-06 08:45:03.000000000 +0100
++++ socat-1.7.2.2/xio-tun.c 2013-12-25 15:51:46.000000000 +0100
+@@ -14,6 +14,12 @@
+
+ #include "xio-tun.h"
+
++#if !defined(__GLIBC__)
++#define IFF_TUN 0x0001
++#define IFF_TAP 0x0002
++#define IFF_NO_PI 0x1000
++#define TUNSETIFF _IOW('T', 202, int)
++#endif
+
+ static int xioopen_tun(int argc, const char *argv[], struct opt *opts, int xioflags, xiofile_t *fd, unsigned groups, int dummy1, int dummy2, int dummy3);
+