summaryrefslogtreecommitdiffstats
path: root/package/libeXosip2/libeXosip2-fix-non-ipv6-build.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/libeXosip2/libeXosip2-fix-non-ipv6-build.patch')
-rw-r--r--package/libeXosip2/libeXosip2-fix-non-ipv6-build.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/libeXosip2/libeXosip2-fix-non-ipv6-build.patch b/package/libeXosip2/libeXosip2-fix-non-ipv6-build.patch
new file mode 100644
index 000000000..bec833fb7
--- /dev/null
+++ b/package/libeXosip2/libeXosip2-fix-non-ipv6-build.patch
@@ -0,0 +1,22 @@
+[PATCH] Fix build on systems without IPV6_TCLASS support
+
+The wrong variable name was used.
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+---
+ src/eXtl_udp.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: libeXosip2-3.6.0/src/eXtl_udp.c
+===================================================================
+--- libeXosip2-3.6.0.orig/src/eXtl_udp.c
++++ libeXosip2-3.6.0/src/eXtl_udp.c
+@@ -178,7 +178,7 @@
+ res = setsockopt(udp_socket, IPPROTO_IPV6, IPV6_TCLASS,
+ (SOCKET_OPTION_VALUE)&tos, sizeof(tos));
+ #else
+- retval = setsockopt(udp_socket, IPPROTO_IPV6, IP_TOS,
++ res = setsockopt(udp_socket, IPPROTO_IPV6, IP_TOS,
+ (SOCKET_OPTION_VALUE)&tos, sizeof(tos));
+ #endif
+ }