diff options
author | Tom Evans <tevans.uk@googlemail.com> | 2011-12-16 00:21:54 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-16 00:48:03 +0400 |
commit | ffa1f541b350946591ea80e134917b28a860fcad (patch) | |
tree | 36ce33cc38ceb716c2ece66877e5ff53c0825fc8 | |
parent | 7f9369b743449d2aa346557d4b6ad0655ec5d56b (diff) |
libavdevice: Fix v4l2 compilation under FreeBSD
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rwxr-xr-x | configure | 2 | ||||
-rw-r--r-- | libavdevice/v4l2.c | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -1138,6 +1138,7 @@ HAVE_LIST=" altivec_h arpa_inet_h asm_mod_y + asm_types_h attribute_may_alias attribute_packed cbrtf @@ -2995,6 +2996,7 @@ check_header termios.h check_header vdpau/vdpau.h check_header vdpau/vdpau_x11.h check_header X11/extensions/XvMClib.h +check_header asm/types.h disabled zlib || check_lib zlib.h zlibVersion -lz || disable zlib disabled bzlib || check_lib2 bzlib.h BZ2_bzlibVersion -lbz2 || disable bzlib diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index dc54c4a205..15356fe980 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -41,7 +41,9 @@ #if HAVE_SYS_VIDEOIO_H #include <sys/videoio.h> #else +#if HAVE_ASM_TYPES_H #include <asm/types.h> +#endif #include <linux/videodev2.h> #endif #include <time.h> |