summaryrefslogtreecommitdiff
path: root/net/gupnp/patches/patch-ad
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2009-08-02 11:35:26 +0000
committerdrochner <drochner@pkgsrc.org>2009-08-02 11:35:26 +0000
commitf80f8f88fbf02a4e57d41b72db14a8d90c4c14ff (patch)
treedd5bdd8b35337820c9719ef852181f6c5a8fbc6c /net/gupnp/patches/patch-ad
parent9e5790d931fe0dcd826168b9ee63e549485d1edd (diff)
downloadpkgsrc-f80f8f88fbf02a4e57d41b72db14a8d90c4c14ff.tar.gz
add gupnp-0.12.8, a base UPnP library
There are (at least) four diffent (and conflicting) libraries for UUID creation. I've added patches to use the NetBSD native one which should be present on other BSDs too. Other OSes likely want to use the Linux/e2fs one (which is in pkgsrc-wip), this also would need some more extensive autoconf changes.
Diffstat (limited to 'net/gupnp/patches/patch-ad')
-rw-r--r--net/gupnp/patches/patch-ad37
1 files changed, 37 insertions, 0 deletions
diff --git a/net/gupnp/patches/patch-ad b/net/gupnp/patches/patch-ad
new file mode 100644
index 00000000000..c89615b8187
--- /dev/null
+++ b/net/gupnp/patches/patch-ad
@@ -0,0 +1,37 @@
+$NetBSD: patch-ad,v 1.1.1.1 2009/08/02 11:35:26 drochner Exp $
+
+--- libgupnp/gupnp-service.c.orig 2009-06-02 14:10:25.000000000 +0200
++++ libgupnp/gupnp-service.c
+@@ -30,7 +30,11 @@
+ #include <gobject/gvaluecollector.h>
+ #include <gmodule.h>
+ #include <libsoup/soup-date.h>
++#if defined(__NetBSD__)
++#include <uuid.h>
++#else
+ #include <uuid/uuid.h>
++#endif
+ #include <string.h>
+ #include "gupnp-service.h"
+ #include "gupnp-root-device.h"
+@@ -843,9 +847,19 @@ generate_sid (void)
+ {
+ uuid_t id;
+ char out[39];
+-
++#if defined(__NetBSD__)
++ char *myout;
++#endif
++
++#if defined(__NetBSD__)
++ uuid_create(&id, 0);
++ uuid_to_string(&id, &myout, 0);
++ strncpy(out, myout, sizeof(out));
++ free(myout);
++#else
+ uuid_generate (id);
+ uuid_unparse (id, out);
++#endif
+
+ return g_strdup_printf ("uuid:%s", out);
+ }