projects
/
platform
/
upstream
/
v4l-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ce661a
)
libv4l: On FreeBSD use sys/ioctl.h instead of linux/ioctl.h
author
Hans Petter Selasky
<hselasky@c2i.net>
Mon, 18 Jul 2011 14:18:42 +0000
(16:18 +0200)
committer
Hans 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
patch
|
blob
|
history
diff --git
a/lib/include/libv4l1-videodev.h
b/lib/include/libv4l1-videodev.h
index
e7c4ff3
..
1b8a781
100644
(file)
--- a/
lib/include/libv4l1-videodev.h
+++ b/
lib/include/libv4l1-videodev.h
@@
-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 */