v4l2object: Don't use mmap64 if off_t is 64-bit
authorTing-Wei Lan <lantw@src.gnome.org>
Tue, 19 Dec 2017 09:37:58 +0000 (17:37 +0800)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 22 Dec 2017 15:30:49 +0000 (10:30 -0500)
commit4026211154b19abe9ce27c705a30e0278a2b224d
tree06fe8df1c2fef0a280cb211d97bd934872259315
parent24f01944ee0df123f3948ec756a1ca11cc64a824
v4l2object: Don't use mmap64 if off_t is 64-bit

The difference between mmap and mmap64 is the type of 'offset' argument.
mmap64 always uses a 64-bit interger as offset, while mmap uses off_t,
whose size can vary on different operating systems or architectures.

However, not all operating systems support mmap64. Fortunately, although
FreeBSD only has mmap, its off_t is always 64-bit regardless of
architectures, so we can simply use mmap when sizeof(off_t) == 8.

https://bugzilla.gnome.org/show_bug.cgi?id=791779
configure.ac
meson.build
sys/v4l2/gstv4l2object.c