0001-fixup-lfs-mismatch-in-preload-libraries.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. From e5952b043a71fe83fbc392e498e8f77774fca0d8 Mon Sep 17 00:00:00 2001
  2. From: Peter Korsgaard <jacmet@sunsite.dk>
  3. Date: Sat, 28 Jun 2014 09:32:53 -0300
  4. Subject: [PATCH] fixup lfs mismatch in preload libraries
  5. Ensure that the lfs variants are not transparently used instead of the !lfs
  6. ones so both can be wrapped, independently of any custom CFLAGS/CPPFLAGS.
  7. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  8. ---
  9. lib/libv4l1/v4l1compat.c | 3 +++
  10. lib/libv4l2/v4l2convert.c | 3 +++
  11. 2 files changed, 6 insertions(+)
  12. diff --git a/lib/libv4l1/v4l1compat.c b/lib/libv4l1/v4l1compat.c
  13. index e328288..70eb74f 100644
  14. --- a/lib/libv4l1/v4l1compat.c
  15. +++ b/lib/libv4l1/v4l1compat.c
  16. @@ -19,6 +19,9 @@
  17. # Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
  18. */
  19. +/* ensure we see *64 variants and they aren't transparently used */
  20. +#undef _LARGEFILE_SOURCE
  21. +#undef _FILE_OFFSET_BITS
  22. #define _LARGEFILE64_SOURCE 1
  23. #include <config.h>
  24. diff --git a/lib/libv4l2/v4l2convert.c b/lib/libv4l2/v4l2convert.c
  25. index 9b46ab8..bc41056 100644
  26. --- a/lib/libv4l2/v4l2convert.c
  27. +++ b/lib/libv4l2/v4l2convert.c
  28. @@ -23,6 +23,9 @@
  29. /* prevent GCC 4.7 inlining error */
  30. #undef _FORTIFY_SOURCE
  31. +/* ensure we see *64 variants and they aren't transparently used */
  32. +#undef _LARGEFILE_SOURCE
  33. +#undef _FILE_OFFSET_BITS
  34. #define _LARGEFILE64_SOURCE 1
  35. #include <config.h>
  36. --
  37. 1.9.1