Browse code

Fix building on FreeBSD8.2 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2011/04/24 20:23:51
Showing 1 changed files
... ...
@@ -2963,7 +2963,14 @@ check_cpp_condition vfw.h "WM_CAP_DRIVER_CONNECT > WM_USER" && enable vfwcap_def
2963 2963
 check_header dev/ic/bt8xx.h
2964 2964
 
2965 2965
 check_header sndio.h
2966
-check_header sys/soundcard.h
2966
+if check_struct sys/soundcard.h audio_buf_info bytes; then
2967
+    enable_safe sys/soundcard.h
2968
+else
2969
+    check_cc -D__BSD_VISIBLE -D__XSI_VISIBLE <<EOF && add_cppflags -D__BSD_VISIBLE -D__XSI_VISIBLE && enable_safe sys/soundcard.h
2970
+    #include <sys/soundcard.h>
2971
+    audio_buf_info abc;
2972
+EOF
2973
+fi
2967 2974
 check_header soundcard.h
2968 2975
 
2969 2976
 enabled_any alsa_indev alsa_outdev && check_lib2 alsa/asoundlib.h snd_pcm_htimestamp -lasound