libv4l: fix musl compatibility on 64-bits
authorNicolas Thill <redacted>
Thu, 25 Jun 2015 15:10:31 +0000 (17:10 +0200)
committerNicolas Thill <redacted>
Thu, 25 Jun 2015 15:10:31 +0000 (17:10 +0200)
Signed-off-by: Nicolas Thill <redacted>
libs/libv4l/patches/030-musl_compatibility.patch

index bd3f0d7f4a4a544aafaf40703dececfa6e972901..758be2b525a2aba3c5ecd3b4a56ab4955f85f483 100644 (file)
@@ -1,6 +1,6 @@
 --- a/lib/libv4lconvert/libv4lsyscall-priv.h
 +++ b/lib/libv4lconvert/libv4lsyscall-priv.h
-@@ -35,14 +35,19 @@
+@@ -35,18 +35,23 @@
     which is broken on some systems and doesn't include them itself :( */
  
  #ifdef linux
 +#undef SYS_mmap2
  #define       SYS_mmap2 __NR_mmap2
  #define       MMAP2_PAGE_SHIFT 12
-+#if !(defined(__UCLIBC__) || defined(__GLIBC__))
-+typedef off_t __off_t;
-+#endif
  #else
  #define       SYS_mmap2 SYS_mmap
  #define       MMAP2_PAGE_SHIFT 0
+ #endif
++#if !(defined(__UCLIBC__) || defined(__GLIBC__))
++typedef off_t __off_t;
++#endif
+ #endif
+ #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
 --- a/lib/libv4l1/v4l1compat.c
 +++ b/lib/libv4l1/v4l1compat.c
 @@ -62,7 +62,7 @@ LIBV4L_PUBLIC int open(const char *file,
git clone https://git.99rst.org/PROJECT