v4l2: Include sys/ioctl.h for the V4L ioctl requests

Old videodevice2.h kernel headers used ioctl stuff without
including ioctl.h, making compilation fail on older systems.

Note: Including ioctl.h here is only a workaround for old kernel
headers, should be removed once everybody has new enough headers.

Fixes bug #597867.
This commit is contained in:
Pau Garcia i Quiles 2009-10-09 11:34:16 +02:00 committed by Sebastian Dröge
parent 993a29a390
commit f10435580f

View file

@ -36,6 +36,7 @@
* upstream, which I'll consider doing later on. If you get compiler
* errors here, check your linux/time.h && sys/time.h header setup.
*/
#include <sys/ioctl.h>
#include <sys/types.h>
#ifndef __sun
#include <linux/types.h>