[FFmpeg-cvslog] Fix building on FreeBSD8.2
Michael Niedermayer
git at videolan.org
Sun Apr 24 13:32:21 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Apr 24 13:23:51 2011 +0200| [13e69cc5fa60a7e2bccedc4f59a16c1abcec6b8b] | committer: Michael Niedermayer
Fix building on FreeBSD8.2
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=13e69cc5fa60a7e2bccedc4f59a16c1abcec6b8b
---
configure | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/configure b/configure
index 20ad702..01f9238 100755
--- a/configure
+++ b/configure
@@ -2963,7 +2963,14 @@ check_cpp_condition vfw.h "WM_CAP_DRIVER_CONNECT > WM_USER" && enable vfwcap_def
check_header dev/ic/bt8xx.h
check_header sndio.h
-check_header sys/soundcard.h
+if check_struct sys/soundcard.h audio_buf_info bytes; then
+ enable_safe sys/soundcard.h
+else
+ check_cc -D__BSD_VISIBLE -D__XSI_VISIBLE <<EOF && add_cppflags -D__BSD_VISIBLE -D__XSI_VISIBLE && enable_safe sys/soundcard.h
+ #include <sys/soundcard.h>
+ audio_buf_info abc;
+EOF
+fi
check_header soundcard.h
enabled_any alsa_indev alsa_outdev && check_lib2 alsa/asoundlib.h snd_pcm_htimestamp -lasound
More information about the ffmpeg-cvslog
mailing list