commit | 80815c292a0cd5bb5beb2f8cb23dcf5997c5e851 | [log] [tgz] |
---|---|---|
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | Fri Dec 22 10:15:48 2017 -0500 |
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | Fri Dec 22 10:30:49 2017 -0500 |
tree | bc1f7744cfaf7f2bfa65cf0c535621ca91b6fd65 | |
parent | 4026211154b19abe9ce27c705a30e0278a2b224d [diff] |
v4l2object: Don't redefine mmap64 On Linux, there exist a case where mmap64 is already a define to mmap, so avoid the redefine warning here.
diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index 6c7a366..0ec774a 100644 --- a/sys/v4l2/gstv4l2object.c +++ b/sys/v4l2/gstv4l2object.c
@@ -55,7 +55,7 @@ #define ENCODED_BUFFER_SIZE (2 * 1024 * 1024) -#if SIZEOF_OFF_T == 8 +#if SIZEOF_OFF_T == 8 && !defined(mmap64) #define mmap64 mmap #endif