libv4l: On FreeBSD use sys/ioctl.h instead of linux/ioctl.h
authorHans Petter Selasky <hselasky@c2i.net>
Mon, 18 Jul 2011 14:18:42 +0000 (16:18 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 18 Jul 2011 14:18:42 +0000 (16:18 +0200)
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
lib/include/libv4l1-videodev.h

index e7c4ff3..1b8a781 100644 (file)
@@ -2,7 +2,14 @@
 #ifndef __LINUX_VIDEODEV_H
 #define __LINUX_VIDEODEV_H
 
+#ifdef linux
 #include <linux/ioctl.h>
+#endif
+
+#ifdef __FreeBSD__
+#include <sys/ioctl.h>
+#endif
+
 #include <stdint.h>
 
 #define VID_TYPE_CAPTURE       1       /* Can capture */