summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2017-12-22 10:15:48 -0500
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2017-12-22 10:30:49 -0500
commit80815c292a0cd5bb5beb2f8cb23dcf5997c5e851 (patch)
treebc1f7744cfaf7f2bfa65cf0c535621ca91b6fd65 /sys
parent4026211154b19abe9ce27c705a30e0278a2b224d (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.
Diffstat (limited to 'sys')
-rw-r--r--sys/v4l2/gstv4l2object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c
index 6c7a36632..0ec774ae4 100644
--- a/sys/v4l2/gstv4l2object.c
+++ b/sys/v4l2/gstv4l2object.c
@@ -55,7 +55,7 @@ GST_DEBUG_CATEGORY_EXTERN (v4l2_debug);
#define ENCODED_BUFFER_SIZE (2 * 1024 * 1024)
-#if SIZEOF_OFF_T == 8
+#if SIZEOF_OFF_T == 8 && !defined(mmap64)
#define mmap64 mmap
#endif