aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/v4l2.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2008-03-20 19:07:24 +0000
committerDiego Biurrun <diego@biurrun.de>2008-03-20 19:07:24 +0000
commitb00675499c6d9327aa7ec6f9f8d9d7758d1d3080 (patch)
tree72b534dde79c61356acd1cd09c22fcc705a4fe5a /libavdevice/v4l2.c
parent721da10aeb929964a21890aae0b36b2fe07b1bd2 (diff)
downloadffmpeg-b00675499c6d9327aa7ec6f9f8d9d7758d1d3080.tar.gz
Only #include sys/mman.h if configure set HAVE_SYS_MMAN_H.
Originally committed as revision 12521 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavdevice/v4l2.c')
-rw-r--r--libavdevice/v4l2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 528acc4345..ab5e6857cb 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -26,11 +26,15 @@
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+#include "config.h"
#include "avformat.h"
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
+#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
+#endif
#include <sys/time.h>
#include <asm/types.h>
#include <linux/videodev2.h>