summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkristerw <kristerw@pkgsrc.org>2005-10-01 18:13:17 +0000
committerkristerw <kristerw@pkgsrc.org>2005-10-01 18:13:17 +0000
commit4d0e5b8d3286efa5fd00a5e3bcbbcc5faefa957f (patch)
treec7dbe8f25f3d295b7fdcd99bc151d8800345c9f3
parente855e11410d24794ab34de206c09f2a246067f34 (diff)
downloadpkgsrc-4d0e5b8d3286efa5fd00a5e3bcbbcc5faefa957f.tar.gz
Fix two cases of C99 variable declarations to make this pkg compile when
using gcc 2.95.
-rw-r--r--audio/libopendaap/distinfo5
-rw-r--r--audio/libopendaap/patches/patch-aa17
-rw-r--r--audio/libopendaap/patches/patch-af18
3 files changed, 35 insertions, 5 deletions
diff --git a/audio/libopendaap/distinfo b/audio/libopendaap/distinfo
index bd34e69a84e..db6f2c8d5ae 100644
--- a/audio/libopendaap/distinfo
+++ b/audio/libopendaap/distinfo
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.9 2005/08/05 12:53:08 tonio Exp $
+$NetBSD: distinfo,v 1.10 2005/10/01 18:13:17 kristerw Exp $
SHA1 (libopendaap-0.4.0.tar.bz2) = 5fe4382af7ecc97a6cb510ebec87b40d6cf6ef38
RMD160 (libopendaap-0.4.0.tar.bz2) = ed8732c6c487ef4902ff2d68552a66418cf2760d
Size (libopendaap-0.4.0.tar.bz2) = 241953 bytes
+SHA1 (patch-aa) = c350abb98a94e21c12d03b585bcad97c9b926f74
SHA1 (patch-ac) = d723c22d11df6d511290d45ccb54861fbecc178d
SHA1 (patch-ad) = 88b72f80e4a6ed68f7ae74ace3f3dbf07709c0b1
-SHA1 (patch-af) = b5811cd930bb45be33cd72f31913e3de85db45f3
+SHA1 (patch-af) = ba10291fd391f1f8ba6258924b44b1886b43e98f
diff --git a/audio/libopendaap/patches/patch-aa b/audio/libopendaap/patches/patch-aa
new file mode 100644
index 00000000000..719a156c811
--- /dev/null
+++ b/audio/libopendaap/patches/patch-aa
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.5 2005/10/01 18:13:17 kristerw Exp $
+
+gcc-2.95.3 does not like code intermixed with declarations.
+
+--- ioloop.c.orig Sat Oct 1 20:07:03 2005
++++ ioloop.c Sat Oct 1 20:07:34 2005
+@@ -113,9 +113,9 @@
+
+ void fd_event_reset(fd_event *event)
+ {
+- event->signalled = 0;
+ char buf[1] = {0};
+ int flags;
++ event->signalled = 0;
+
+ /* set non-blocking on read pipe */
+ flags = fcntl(event->pipe[0], F_GETFL, 0);
diff --git a/audio/libopendaap/patches/patch-af b/audio/libopendaap/patches/patch-af
index 8ae04a86345..c075a67ff90 100644
--- a/audio/libopendaap/patches/patch-af
+++ b/audio/libopendaap/patches/patch-af
@@ -1,9 +1,9 @@
-$NetBSD: patch-af,v 1.2 2005/08/05 12:53:08 tonio Exp $
+$NetBSD: patch-af,v 1.3 2005/10/01 18:13:17 kristerw Exp $
gcc-2.95.3 does not like code intermixed with declarations.
---- client.c.orig 2005-08-04 10:43:47.000000000 +0200
-+++ client.c 2005-08-04 10:44:42.000000000 +0200
+--- client.c.orig Thu May 12 08:46:29 2005
++++ client.c Sat Oct 1 20:02:09 2005
@@ -1379,11 +1379,10 @@
int requestid = 0;
@@ -17,3 +17,15 @@ gcc-2.95.3 does not like code intermixed with declarations.
if (pCHThis->version_major != 3)
{
buf = safe_sprintf(songUrl_42, databaseid, songid, songformat,
+@@ -1643,10 +1642,10 @@
+ static void AsyncWaitUpdate(void *pv_pCHThis, void *unused)
+ {
+ DAAP_SClientHost *pCHThis = (DAAP_SClientHost*)pv_pCHThis;
+- TRACE("()\n");
+ char hash[33] = {0};
+ char updateUrl[] = "/update?session-id=%i&revision-number=%i&delta=%i";
+ char *buf;
++ TRACE("()\n");
+
+ buf = safe_sprintf(updateUrl, pCHThis->sessionid, pCHThis->revision_number,
+ pCHThis->revision_number);