v4l2: Fix unknown type name ‘off_t’ error
authorSeungha Yang <pudding8757@gmail.com>
Tue, 20 Mar 2018 15:19:37 +0000 (00:19 +0900)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 27 Mar 2018 17:46:58 +0000 (13:46 -0400)
Fix following build error

gstv4l2object.h:197:17: error: unknown type name ‘off_t’
       gint fd,  off_t offset);
                 ^

https://bugzilla.gnome.org/show_bug.cgi?id=794533

sys/v4l2/gstv4l2object.c
sys/v4l2/gstv4l2object.h

index 1f14cd6..c1b8b83 100644 (file)
@@ -25,7 +25,6 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <errno.h>
-#include <unistd.h>
 #include <string.h>
 #include <sys/mman.h>
 #include <sys/ioctl.h>
index fc3c4c7..9097a48 100644 (file)
@@ -35,6 +35,7 @@
 #include <gst/base/gstpushsrc.h>
 
 #include <gst/video/video.h>
+#include <unistd.h>
 
 typedef struct _GstV4l2Object GstV4l2Object;
 typedef struct _GstV4l2ObjectClassHelper GstV4l2ObjectClassHelper;