[vlc-commits] contrib: fix libshout build on FreeBSD 8

Rafaël Carré git at videolan.org
Thu Oct 4 14:25:18 CEST 2012


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Thu Oct  4 13:13:34 2012 +0200| [ebea6779eae5dbaf3851c66430ede8d1ea93b03c] | committer: Rafaël Carré

contrib: fix libshout build on FreeBSD 8

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ebea6779eae5dbaf3851c66430ede8d1ea93b03c
---

 contrib/src/shout/bsd.patch |   13 +++++++++++++
 contrib/src/shout/rules.mak |    1 +
 2 files changed, 14 insertions(+)

diff --git a/contrib/src/shout/bsd.patch b/contrib/src/shout/bsd.patch
new file mode 100644
index 0000000..7bb3bc6
--- /dev/null
+++ b/contrib/src/shout/bsd.patch
@@ -0,0 +1,13 @@
+--- libshout.orig/src/net/sock.c	2012-10-04 13:04:55.000000000 +0200
++++ libshout/src/net/sock.c	2012-10-04 13:05:18.000000000 +0200
+@@ -22,6 +22,10 @@
+  #include <config.h>
+ #endif
+ 
++#ifdef __FreeBSD__
++# define __BSD_VISIBLE 1
++#endif
++
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <stdarg.h>
diff --git a/contrib/src/shout/rules.mak b/contrib/src/shout/rules.mak
index 291d0e3..86a3be3 100644
--- a/contrib/src/shout/rules.mak
+++ b/contrib/src/shout/rules.mak
@@ -19,6 +19,7 @@ $(TARBALLS)/libshout-$(SHOUT_VERSION).tar.gz:
 libshout: libshout-$(SHOUT_VERSION).tar.gz .sum-shout
 	$(UNPACK)
 	$(APPLY) $(SRC)/shout/libshout-win32.patch
+	$(APPLY) $(SRC)/shout/bsd.patch
 	$(UPDATE_AUTOCONFIG)
 	$(MOVE)
 



More information about the vlc-commits mailing list