summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2017-07-31 15:56:05 (GMT)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2017-08-01 19:05:35 (GMT)
commitb61bba48488c0a627d90f04cc9917d8c4f3f0d9b (patch)
tree38deba0a609cc6c8e09220bdadde514dfd1023e0
parentba8aa440bb5100e00d9ba85b1a420c0b9c6d352f (diff)
downloadgst-plugins-good-b61bba48488c0a627d90f04cc9917d8c4f3f0d9b.tar.gz
gst-plugins-good-b61bba48488c0a627d90f04cc9917d8c4f3f0d9b.tar.xz
v4l2object: Use mmap64 to match libv4l2 signature
https://bugzilla.gnome.org/show_bug.cgi?id=785628
-rw-r--r--sys/v4l2/gstv4l2object.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c
index c6886b1..f902a82 100644
--- a/sys/v4l2/gstv4l2object.c
+++ b/sys/v4l2/gstv4l2object.c
@@ -22,6 +22,8 @@
#include <config.h>
#endif
+#define _GNU_SOURCE /* Enable mmap64() */
+
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
@@ -509,7 +511,7 @@ gst_v4l2_object_new (GstElement * element,
v4l2object->dup = dup;
v4l2object->ioctl = ioctl;
v4l2object->read = read;
- v4l2object->mmap = mmap;
+ v4l2object->mmap = mmap64;
v4l2object->munmap = munmap;
}