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.
This commit is contained in:
Nicolas Dufresne 2017-12-22 10:15:48 -05:00
parent 4026211154
commit 80815c292a

View file

@ -55,7 +55,7 @@ GST_DEBUG_CATEGORY_EXTERN (v4l2_debug);
#define ENCODED_BUFFER_SIZE (2 * 1024 * 1024) #define ENCODED_BUFFER_SIZE (2 * 1024 * 1024)
#if SIZEOF_OFF_T == 8 #if SIZEOF_OFF_T == 8 && !defined(mmap64)
#define mmap64 mmap #define mmap64 mmap
#endif #endif