aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authornox <nox@FreeBSD.org>2012-03-20 04:10:47 +0800
committernox <nox@FreeBSD.org>2012-03-20 04:10:47 +0800
commit5a19405786eb32a79a0b452d12957a3f5396b854 (patch)
treecf93396a47b6b8608788007d0bcf2e13d94663e6 /multimedia
parent293927d3771428c5ffaaac572e3c6f43f9d6113b (diff)
downloadfreebsd-ports-graphics-5a19405786eb32a79a0b452d12957a3f5396b854.tar.gz
freebsd-ports-graphics-5a19405786eb32a79a0b452d12957a3f5396b854.tar.zst
freebsd-ports-graphics-5a19405786eb32a79a0b452d12957a3f5396b854.zip
Fix build with lang/gcc.
Reported by: Gautam Mani <gautam@execve.net> (via private email) Feature safe: yes
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/libxine/files/patch-src-audio_dec-xine_lpcm_decoder.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/multimedia/libxine/files/patch-src-audio_dec-xine_lpcm_decoder.c b/multimedia/libxine/files/patch-src-audio_dec-xine_lpcm_decoder.c
new file mode 100644
index 00000000000..280ac7fa29d
--- /dev/null
+++ b/multimedia/libxine/files/patch-src-audio_dec-xine_lpcm_decoder.c
@@ -0,0 +1,12 @@
+--- src/audio_dec/xine_lpcm_decoder.c.orig
++++ src/audio_dec/xine_lpcm_decoder.c
+@@ -30,6 +30,9 @@
+ #endif
+ /* avoid compiler warnings */
+ #define _BSD_SOURCE 1
++#ifdef __FreeBSD__
++#define __BSD_VISIBLE 1
++#endif
+
+ #ifdef HAVE_CONFIG_H
+ #include "config.h"