summaryrefslogtreecommitdiffstats
path: root/net-im/libnice/files
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/libnice/files')
-rw-r--r--net-im/libnice/files/patch-agent_interfaces.c19
-rw-r--r--net-im/libnice/files/patch-stun_md5.c10
-rw-r--r--net-im/libnice/files/patch-stun_sha1.c10
3 files changed, 39 insertions, 0 deletions
diff --git a/net-im/libnice/files/patch-agent_interfaces.c b/net-im/libnice/files/patch-agent_interfaces.c
new file mode 100644
index 000000000..d3d33d3a3
--- /dev/null
+++ b/net-im/libnice/files/patch-agent_interfaces.c
@@ -0,0 +1,19 @@
+--- agent/interfaces.c.orig 2010-07-20 17:54:40.000000000 -0400
++++ agent/interfaces.c 2010-07-24 20:24:19.000000000 -0400
+@@ -46,6 +46,7 @@
+ #include <ifaddrs.h>
+ #endif
+
++#include <netinet/in.h>
+ #include <net/if.h>
+ #include <net/if_arp.h>
+ #include <arpa/inet.h>
+@@ -198,7 +199,7 @@ nice_interfaces_get_local_ips (gboolean
+ struct sockaddr_in6 *sa6 = (struct sockaddr_in6 *)ifa->ifa_addr;
+
+ /* Skip link-local addresses, they require a scope */
+- if (IN6_IS_ADDR_LINKLOCAL (sa6->sin6_addr.s6_addr))
++ if (IN6_IS_ADDR_LINKLOCAL (&sa6->sin6_addr))
+ continue;
+
+ if (inet_ntop (AF_INET6, &sa6->sin6_addr, addr_as_string,
diff --git a/net-im/libnice/files/patch-stun_md5.c b/net-im/libnice/files/patch-stun_md5.c
new file mode 100644
index 000000000..8f787548f
--- /dev/null
+++ b/net-im/libnice/files/patch-stun_md5.c
@@ -0,0 +1,10 @@
+--- stun/md5.c.orig 2009-02-27 23:04:31.000000000 -0500
++++ stun/md5.c 2009-02-27 23:05:15.000000000 -0500
+@@ -13,6 +13,7 @@
+ */
+
+ #include "md5.h"
++#include <sys/endian.h>
+ #include <string.h>
+
+ /* ===== start - public domain MD5 implementation ===== */
diff --git a/net-im/libnice/files/patch-stun_sha1.c b/net-im/libnice/files/patch-stun_sha1.c
new file mode 100644
index 000000000..33e3775b2
--- /dev/null
+++ b/net-im/libnice/files/patch-stun_sha1.c
@@ -0,0 +1,10 @@
+--- stun/sha1.c.orig 2009-02-27 23:05:24.000000000 -0500
++++ stun/sha1.c 2009-02-27 23:05:33.000000000 -0500
+@@ -13,6 +13,7 @@
+ */
+
+ #include "sha1.h"
++#include <sys/endian.h>
+ #include <string.h>
+
+