0001-fix-compiling-on-Buildroot.patch 803 B

1234567891011121314151617181920212223242526272829303132
  1. From a9f6a55bdb29a2bebc96a68ab53077906c25a9df Mon Sep 17 00:00:00 2001
  2. From: Yegor Yefremov <yegorslists@googlemail.com>
  3. Date: Wed, 22 Jan 2014 15:04:42 +0100
  4. Subject: [PATCH] Fix compiling on Buildroot
  5. Buildroot always specifies -D_LARGEFILE_SOURCE, -D_LARGEFILE64_SOURCE,
  6. -D_FILE_OFFSET_BITS=64, so define them only if they are not already
  7. defined.
  8. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
  9. ---
  10. src/fmacros.h | 4 ++++
  11. 1 files changed, 4 insertions(+), 0 deletions(-)
  12. diff --git a/src/fmacros.h b/src/fmacros.h
  13. index fa37948..059dfeb 100644
  14. --- a/src/fmacros.h
  15. +++ b/src/fmacros.h
  16. @@ -14,7 +14,11 @@
  17. #define _XOPEN_SOURCE
  18. #endif
  19. +#ifndef _LARGEFILE_SOURCE
  20. #define _LARGEFILE_SOURCE
  21. +#endif
  22. +#ifndef _FILE_OFFSET_BITS
  23. #define _FILE_OFFSET_BITS 64
  24. +#endif
  25. #endif
  26. --
  27. 1.7.7