libv4l-01-largefile.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. [PATCH] fixup lfs mismatch in preload libraries
  2. Ensure that the lfs variants are not transparently used instead of the !lfs
  3. ones so both can be wrapped, independently of any custom CFLAGS/CPPFLAGS.
  4. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  5. ---
  6. lib/libv4l1/v4l1compat.c | 3 +++
  7. lib/libv4l2/v4l2convert.c | 3 +++
  8. 2 files changed, 6 insertions(+)
  9. Index: v4l-utils-0.8.5/lib/libv4l1/v4l1compat.c
  10. ===================================================================
  11. --- v4l-utils-0.8.5.orig/lib/libv4l1/v4l1compat.c
  12. +++ v4l-utils-0.8.5/lib/libv4l1/v4l1compat.c
  13. @@ -19,6 +19,9 @@
  14. # Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
  15. */
  16. +/* ensure we see *64 variants and they aren't transparently used */
  17. +#undef _LARGEFILE_SOURCE
  18. +#undef _FILE_OFFSET_BITS
  19. #define _LARGEFILE64_SOURCE 1
  20. #include <stdlib.h>
  21. Index: v4l-utils-0.8.5/lib/libv4l2/v4l2convert.c
  22. ===================================================================
  23. --- v4l-utils-0.8.5.orig/lib/libv4l2/v4l2convert.c
  24. +++ v4l-utils-0.8.5/lib/libv4l2/v4l2convert.c
  25. @@ -20,6 +20,9 @@
  26. # Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
  27. */
  28. +/* ensure we see *64 variants and they aren't transparently used */
  29. +#undef _LARGEFILE_SOURCE
  30. +#undef _FILE_OFFSET_BITS
  31. #define _LARGEFILE64_SOURCE 1
  32. #include <stdarg.h>