summaryrefslogtreecommitdiff
path: root/libavdevice/v4l.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/v4l.c
parent721da10aeb929964a21890aae0b36b2fe07b1bd2 (diff)
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/v4l.c')
-rw-r--r--libavdevice/v4l.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavdevice/v4l.c b/libavdevice/v4l.c
index 5d57a2bbdc..75ee6a35a1 100644
--- a/libavdevice/v4l.c
+++ b/libavdevice/v4l.c
@@ -18,12 +18,16 @@
* 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 "dsputil.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>
#define _LINUX_TIME_H 1
#include <linux/videodev.h>