diff options
Diffstat (limited to 'sys/v4l2/gstv4l2object.h')
-rw-r--r-- | sys/v4l2/gstv4l2object.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/v4l2/gstv4l2object.h b/sys/v4l2/gstv4l2object.h index 257ec7f1b..9b3c5d270 100644 --- a/sys/v4l2/gstv4l2object.h +++ b/sys/v4l2/gstv4l2object.h @@ -38,13 +38,15 @@ */ #include <sys/ioctl.h> #include <sys/types.h> -#ifndef __sun +#ifdef __sun +#include <sys/videodev2.h> +#elif defined(__FreeBSD__) +#include <linux/videodev2.h> +#else /* linux */ #include <linux/types.h> #define _LINUX_TIME_H #define __user #include <linux/videodev2.h> -#else -#include <sys/videodev2.h> #endif #include <gst/gst.h> |