v4l2object: Don't redefine mmap64
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 22 Dec 2017 15:15:48 +0000 (10:15 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 22 Dec 2017 15:30:49 +0000 (10:30 -0500)
On Linux, there exist a case where mmap64 is already a define to mmap,
so avoid the redefine warning here.

sys/v4l2/gstv4l2object.c

index 6c7a366..0ec774a 100644 (file)
@@ -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