[Bug 791779] v4l2src: mmap64 is not available on FreeBSD
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Fri Dec 22 03:45:03 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=791779
Ting-Wei Lan <lantw44 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #365739|committed |none
status| |
Attachment #365739|0 |1
is obsolete| |
--- Comment #12 from Ting-Wei Lan <lantw44 at gmail.com> ---
Created attachment 365868
--> https://bugzilla.gnome.org/attachment.cgi?id=365868&action=edit
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.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list