diff options
author | tron <tron@pkgsrc.org> | 2006-07-03 02:18:15 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2006-07-03 02:18:15 +0000 |
commit | 5e15869e82700181c119606d19b5f51078fe3176 (patch) | |
tree | d5fef1a8b86f8f2bdb1932a701dff1f89a2bffe0 /audio/daapd/patches | |
parent | e1475c9172ad3e8aa374f695cb73e67d3bf4a1d9 (diff) | |
download | pkgsrc-5e15869e82700181c119606d19b5f51078fe3176.tar.gz |
Fix build with GCC 4.x:
- Use "-ffriend-injection" to get "daaplib" to build again.
- Use proper return values in iterators in "libhttpd-persistent".
Diffstat (limited to 'audio/daapd/patches')
-rw-r--r-- | audio/daapd/patches/patch-ab | 13 | ||||
-rw-r--r-- | audio/daapd/patches/patch-ac | 111 |
2 files changed, 124 insertions, 0 deletions
diff --git a/audio/daapd/patches/patch-ab b/audio/daapd/patches/patch-ab new file mode 100644 index 00000000000..696463a5181 --- /dev/null +++ b/audio/daapd/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.5 2006/07/03 02:18:15 tron Exp $ + +--- daaplib/src/makefile.orig 2006-03-05 13:39:36.000000000 +0000 ++++ daaplib/src/makefile 2006-07-03 02:37:56.000000000 +0100 +@@ -11,7 +11,7 @@ + LIBDEPLOY = /usr/local/lib + INCDEPLOY = /usr/local/include + INCPATH = ../include +-CFLAGS = -Wall -Wno-multichar ++CFLAGS += -Wall -Wno-multichar + + .cpp.o: + $(CC) $(CFLAGS) -I$(INCPATH) -c $< diff --git a/audio/daapd/patches/patch-ac b/audio/daapd/patches/patch-ac new file mode 100644 index 00000000000..7cff9e08aae --- /dev/null +++ b/audio/daapd/patches/patch-ac @@ -0,0 +1,111 @@ +$NetBSD: patch-ac,v 1.3 2006/07/03 02:18:15 tron Exp $ + +--- libhttpd/src/select.h.orig 2006-03-05 14:00:38.000000000 +0000 ++++ libhttpd/src/select.h 2006-07-03 03:10:45.000000000 +0100 +@@ -81,7 +81,7 @@ + c++; + } + +- return 0; ++ return c; + } + + +@@ -154,7 +154,7 @@ + + void erase( const int fDesc ) { + ClientIterator c; +- if ((c = locateFDesc(fDesc)) != 0) { ++ if ((c = locateFDesc(fDesc)) != clientList.end()) { + clientList.erase(c); + close(fDesc); + } +@@ -162,14 +162,14 @@ + + void finish( const int fDesc ) { + ClientIterator c; +- if ((c = locateFDesc(fDesc)) != 0) { ++ if ((c = locateFDesc(fDesc)) != clientList.end()) { + c->finished = true; + } + } + + void address( const int fDesc, char address[HTTP_IP_ADDR_LEN] ) { + ClientIterator c; +- if ((c = locateFDesc(fDesc)) != 0) { ++ if ((c = locateFDesc(fDesc)) != clientList.end()) { + strncpy(address, c->address, HTTP_IP_ADDR_LEN); + } + } +@@ -180,7 +180,7 @@ + + int readBuf(const int fDesc, char *destBuf, const uint len) { + ClientIterator c; +- if ((c = locateFDesc(fDesc)) == 0) { ++ if ((c = locateFDesc(fDesc)) == clientList.end()) { + // printf("unknown client id %d\n", fDesc); + return 0; + } +@@ -192,7 +192,7 @@ + + int readLine(const int fDesc, char *destBuf, const uint len) { + ClientIterator c; +- if ((c = locateFDesc(fDesc)) == 0) { ++ if ((c = locateFDesc(fDesc)) == clientList.end()) { + // printf("unknown client id %d\n", fDesc); + return 0; + } +@@ -217,7 +217,7 @@ + int handleWrite(int socket) { + int bytesWritten; + ClientIterator c; +- if ((c = locateFDesc(socket)) == 0) { ++ if ((c = locateFDesc(socket)) == clientList.end()) { + // printf("unknown client id %d\n", socket); + return 2; + } +@@ -260,7 +260,7 @@ + return 1; + } else { + ClientIterator c; +- if ((c = locateFDesc(fDesc)) == 0) { ++ if ((c = locateFDesc(fDesc)) == clientList.end()) { + // printf("unknown client id %d\n", fDesc); + return 2; + } +@@ -304,7 +304,7 @@ + + void doWrite(const int fDesc, const char* string, const uint len) { + ClientIterator c; +- if ((c = locateFDesc(fDesc)) == 0) { ++ if ((c = locateFDesc(fDesc)) == clientList.end()) { + //printf("unknown client id %d\n", fDesc); + return; + } +@@ -318,7 +318,7 @@ + + void doWrite(const int fDesc, const char* string) { + ClientIterator c; +- if ((c = locateFDesc(fDesc)) == 0) { ++ if ((c = locateFDesc(fDesc)) == clientList.end()) { + //printf("unknown client id %d\n", fDesc); + return; + } +@@ -351,7 +351,7 @@ + + void queueFile(const int socket, const int pendingFile ) { + ClientIterator c; +- if ((c = locateFDesc(socket)) == 0) { ++ if ((c = locateFDesc(socket)) == clientList.end()) { + // printf("unknown client id %d\n", socket); + return; + } +@@ -360,7 +360,7 @@ + + void subscribe(const int fDesc) { + ClientIterator c; +- if ((c = locateFDesc(fDesc)) == 0) { ++ if ((c = locateFDesc(fDesc)) == clientList.end()) { + //printf("unknown client id %d\n", fDesc); + return; + } |