summaryrefslogtreecommitdiff
path: root/v4l2-apps/libv4l/include/libv4lconvert.h
diff options
context:
space:
mode:
Diffstat (limited to 'v4l2-apps/libv4l/include/libv4lconvert.h')
-rw-r--r--v4l2-apps/libv4l/include/libv4lconvert.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/v4l2-apps/libv4l/include/libv4lconvert.h b/v4l2-apps/libv4l/include/libv4lconvert.h
index 7901b35dc..b274c938b 100644
--- a/v4l2-apps/libv4l/include/libv4lconvert.h
+++ b/v4l2-apps/libv4l/include/libv4lconvert.h
@@ -21,10 +21,21 @@
/* These headers are not needed by us, but by linux/videodev2.h,
which is broken on some systems and doesn't include them itself :( */
+
+#ifdef linux
#include <sys/time.h>
#include <linux/types.h>
#include <linux/ioctl.h>
+#endif
+
+#ifdef __FreeBSD__
+#include <sys/time.h>
+#include <sys/types.h>
+#include <sys/ioctl.h>
+#endif
+
/* end broken header workaround includes */
+
#include <linux/videodev2.h>
#ifdef __cplusplus