From 80815c292a0cd5bb5beb2f8cb23dcf5997c5e851 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Fri, 22 Dec 2017 10:15:48 -0500 Subject: [PATCH] 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. --- sys/v4l2/gstv4l2object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index 6c7a366325..0ec774ae46 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