summaryrefslogtreecommitdiff
path: root/net/gssdp/patches
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2009-08-02 11:24:06 +0000
committerdrochner <drochner@pkgsrc.org>2009-08-02 11:24:06 +0000
commit9e5790d931fe0dcd826168b9ee63e549485d1edd (patch)
tree3fd99638f9ebf98b61f3b86c75fb10347a39c909 /net/gssdp/patches
parent276babdd8307e3c5594dc8e6b74574d309510605 (diff)
downloadpkgsrc-9e5790d931fe0dcd826168b9ee63e549485d1edd.tar.gz
add gssdp-0.6.4, a service discovery library for for UPnP
Diffstat (limited to 'net/gssdp/patches')
-rw-r--r--net/gssdp/patches/patch-aa21
-rw-r--r--net/gssdp/patches/patch-ab13
2 files changed, 34 insertions, 0 deletions
diff --git a/net/gssdp/patches/patch-aa b/net/gssdp/patches/patch-aa
new file mode 100644
index 00000000000..2e2f92491d3
--- /dev/null
+++ b/net/gssdp/patches/patch-aa
@@ -0,0 +1,21 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/08/02 11:24:06 drochner Exp $
+
+--- ./libgssdp/gssdp-socket-source.c.orig 2009-01-06 15:44:15.000000000 +0100
++++ ./libgssdp/gssdp-socket-source.c
+@@ -121,6 +121,16 @@ gssdp_socket_source_new (GSSDPSocketSour
+ if (res == -1)
+ goto error;
+
++#ifdef __NetBSD__
++ res = setsockopt (socket_source->poll_fd.fd,
++ SOL_SOCKET,
++ SO_REUSEPORT,
++ &boolean,
++ sizeof (boolean));
++ if (res == -1)
++ goto error;
++#endif
++
+ /* Subscribe to multicast channel */
+ mreq.imr_multiaddr.s_addr = inet_addr (SSDP_ADDR);
+ mreq.imr_interface.s_addr = htonl (INADDR_ANY);
diff --git a/net/gssdp/patches/patch-ab b/net/gssdp/patches/patch-ab
new file mode 100644
index 00000000000..81ced292a60
--- /dev/null
+++ b/net/gssdp/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2009/08/02 11:24:06 drochner Exp $
+
+--- tools/gssdp-device-sniffer.c.orig 2009-03-29 22:07:57.000000000 +0200
++++ tools/gssdp-device-sniffer.c
+@@ -317,7 +317,7 @@ resource_available_cb (GSSDPResourceBrow
+
+ uuid = usn_tokens[0] + 5; /* skip the prefix 'uuid:' */
+
+- if (usn_tokens[1]) {
++ if (usn_tokens[1] && strlen(usn_tokens[1]) != 0) {
+ char **urn_tokens;
+
+ urn_tokens = g_strsplit (usn_tokens[1], ":device:", -1);