diff options
Diffstat (limited to 'package/socat/patches')
-rw-r--r-- | package/socat/patches/501-honor_ldflags.patch | 6 | ||||
-rw-r--r-- | package/socat/patches/patch-sysincludes_h | 14 | ||||
-rw-r--r-- | package/socat/patches/patch-xio-ip4_c | 12 | ||||
-rw-r--r-- | package/socat/patches/patch-xio-proxy_c | 12 | ||||
-rw-r--r-- | package/socat/patches/patch-xio-tun_c | 15 |
5 files changed, 56 insertions, 3 deletions
diff --git a/package/socat/patches/501-honor_ldflags.patch b/package/socat/patches/501-honor_ldflags.patch index a41a929f1..87c777067 100644 --- a/package/socat/patches/501-honor_ldflags.patch +++ b/package/socat/patches/501-honor_ldflags.patch @@ -1,7 +1,7 @@ diff -ruN socat-1.4-old/Makefile.in socat-1.4-new/Makefile.in ---- socat-1.4-old/Makefile.in 2005-09-10 22:09:11.000000000 +0200 -+++ socat-1.4-new/Makefile.in 2005-10-08 17:12:45.000000000 +0200 -@@ -36,7 +36,8 @@ +--- socat-1.7.2.2.orig/Makefile.in 2011-12-06 08:45:03.000000000 +0100 ++++ socat-1.7.2.2/Makefile.in 2013-12-24 16:37:21.000000000 +0100 +@@ -38,7 +38,8 @@ INSTALL = @INSTALL@ #0 CFLAGS = @CFLAGS@ $(CCOPTS) $(DEFS) $(INCLS) CFLAGS = @CFLAGS@ $(CCOPTS) $(DEFS) $(CPPFLAGS) diff --git a/package/socat/patches/patch-sysincludes_h b/package/socat/patches/patch-sysincludes_h new file mode 100644 index 000000000..59387a6ad --- /dev/null +++ b/package/socat/patches/patch-sysincludes_h @@ -0,0 +1,14 @@ +--- socat-1.7.2.2.orig/sysincludes.h 2011-12-06 08:45:03.000000000 +0100 ++++ socat-1.7.2.2/sysincludes.h 2013-12-25 15:43:19.000000000 +0100 +@@ -136,9 +136,11 @@ + #if HAVE_NETINET_IF_ETHER_H + #include <netinet/if_ether.h> + #endif ++#if defined(__GLIBC__) + #if HAVE_LINUX_IF_TUN_H + #include <linux/if_tun.h> + #endif ++#endif + + #if HAVE_TERMIOS_H && _WITH_TERMIOS + #include <termios.h> diff --git a/package/socat/patches/patch-xio-ip4_c b/package/socat/patches/patch-xio-ip4_c new file mode 100644 index 000000000..15d5bd86b --- /dev/null +++ b/package/socat/patches/patch-xio-ip4_c @@ -0,0 +1,12 @@ +--- socat-1.7.2.2.orig/xio-ip4.c 2010-10-06 09:25:30.000000000 +0200 ++++ socat-1.7.2.2/xio-ip4.c 2013-12-25 15:46:30.000000000 +0100 +@@ -13,6 +13,9 @@ + #include "xio-ip.h" + #include "xio-ip4.h" + ++#if !defined(__GLIBC__) ++# define NETDB_INTERNAL -1 ++#endif + + int xioparsenetwork_ip4(const char *rangename, struct xiorange *range) { + struct hostent *maskaddr; diff --git a/package/socat/patches/patch-xio-proxy_c b/package/socat/patches/patch-xio-proxy_c new file mode 100644 index 000000000..f378841cd --- /dev/null +++ b/package/socat/patches/patch-xio-proxy_c @@ -0,0 +1,12 @@ +--- socat-1.7.2.2.orig/xio-proxy.c 2011-12-06 08:45:03.000000000 +0100 ++++ socat-1.7.2.2/xio-proxy.c 2013-12-25 15:47:38.000000000 +0100 +@@ -16,6 +16,9 @@ + + #include "xio-proxy.h" + ++#if !defined(__GLIBC__) ++# define NETDB_INTERNAL -1 ++#endif + + #define PROXYPORT "8080" + 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); + |