v4l2object: Use mmap64 to match libv4l2 signature

https://bugzilla.gnome.org/show_bug.cgi?id=785628
This commit is contained in:
Nicolas Dufresne 2017-07-31 11:56:05 -04:00
parent ba8aa440bb
commit b61bba4848

View file

@ -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;
}