2
1

valgrind-largefile.patch 928 B

123456789101112131415161718192021222324252627
  1. [PATCH] valgrind: don't enable largefile support unconditionally on uClibc
  2. uClibc can be compiled without largefile support (and errors out if
  3. _FILE_OFFSET_BITS is set to 64), so don't define it if that combination
  4. is detected.
  5. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  6. ---
  7. coregrind/m_ume.c | 4 ++++
  8. 1 file changed, 4 insertions(+)
  9. Index: valgrind-3.2.3/coregrind/m_ume.c
  10. ===================================================================
  11. --- valgrind-3.2.3.orig/coregrind/m_ume.c
  12. +++ valgrind-3.2.3/coregrind/m_ume.c
  13. @@ -31,7 +31,11 @@
  14. #define _GNU_SOURCE
  15. +#include <features.h>
  16. +/* uclibc without largefile support #errors on _FILE_OFFSET_BITS=64 */
  17. +#if !(defined(__UCLIBC__) && !defined(__UCLIBC_HAS_LFS__))
  18. #define _FILE_OFFSET_BITS 64
  19. +#endif
  20. // It seems that on SuSE 9.1 (x86) something in <fcntl.h> messes up stuff
  21. // acquired indirectly from vki-x86-linux.h. Therefore our headers must be