diff options
author | kristerw <kristerw@pkgsrc.org> | 2005-10-01 18:13:17 +0000 |
---|---|---|
committer | kristerw <kristerw@pkgsrc.org> | 2005-10-01 18:13:17 +0000 |
commit | 4d0e5b8d3286efa5fd00a5e3bcbbcc5faefa957f (patch) | |
tree | c7dbe8f25f3d295b7fdcd99bc151d8800345c9f3 /audio/libopendaap/patches | |
parent | e855e11410d24794ab34de206c09f2a246067f34 (diff) | |
download | pkgsrc-4d0e5b8d3286efa5fd00a5e3bcbbcc5faefa957f.tar.gz |
Fix two cases of C99 variable declarations to make this pkg compile when
using gcc 2.95.
Diffstat (limited to 'audio/libopendaap/patches')
-rw-r--r-- | audio/libopendaap/patches/patch-aa | 17 | ||||
-rw-r--r-- | audio/libopendaap/patches/patch-af | 18 |
2 files changed, 32 insertions, 3 deletions
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); |