]> git.sesse.net Git - vlc/commitdiff
* fix compilation of libopendaap on 10.2
authorFelix Paul Kühne <fkuehne@videolan.org>
Thu, 4 Aug 2005 11:49:36 +0000 (11:49 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Thu, 4 Aug 2005 11:49:36 +0000 (11:49 +0000)
extras/contrib/src/Makefile
extras/contrib/src/Patches/daap.patch [new file with mode: 0644]

index 6da92c8322fa03e9d7e501418b5f91cc38cba94d..0dfdc1468f960ad47d3ec5b388f9acb93320f733 100644 (file)
@@ -1160,6 +1160,7 @@ libopendaap-$(DAAP_VERSION).tar.bz2:
 
 libopendaap: libopendaap-$(DAAP_VERSION).tar.bz2
        $(EXTRACT_BZ2)
+       patch -p 0 < Patches/daap.patch
 
 .daap: libopendaap
        (cd $<; ./configure --prefix=$(PREFIX) CFLAGS="$(CFLAGS) -D_BSD_SOCKLEN_T_=int" && make install)
diff --git a/extras/contrib/src/Patches/daap.patch b/extras/contrib/src/Patches/daap.patch
new file mode 100644 (file)
index 0000000..8a41166
--- /dev/null
@@ -0,0 +1,13 @@
+--- http_client.c      2005-05-12 07:52:03.000000000 +0200
++++ http_client_2.c    2005-08-04 13:43:27.000000000 +0200
+@@ -35,6 +35,10 @@
+ # include <tcpd.h>
+ #endif
++#ifdef MAC_OS_X_VERSION_10_2
++# include <netinet/in.h>
++#endif
++
+ #ifdef SYSTEM_POSIX
+ # include <unistd.h>
+ # include <sys/types.h>