2
1

nbd-fix-build-with-disable-lfs.patch 760 B

123456789101112131415161718192021222324252627282930
  1. From 6d452ab0247770a446cfa6dd9b8b4ddea6c8fa4b Mon Sep 17 00:00:00 2001
  2. From: Peter Korsgaard <jacmet@sunsite.dk>
  3. Date: Sun, 22 Nov 2009 23:01:52 +0100
  4. Subject: [PATCH] lfs.h: fix build with --disable-lfs
  5. Running ./configure with --disable-lfs #define's NBD_LFS to 0 and
  6. doesn't #undef it, so the LFS check should use #if rather than #ifdef
  7. similar to how it is done in cliserv.h
  8. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  9. ---
  10. lfs.h | 2 +-
  11. 1 files changed, 1 insertions(+), 1 deletions(-)
  12. diff --git a/lfs.h b/lfs.h
  13. index 8f90f81..929ce08 100644
  14. --- a/lfs.h
  15. +++ b/lfs.h
  16. @@ -2,7 +2,7 @@
  17. #define LFS_H
  18. #include "config.h"
  19. -#ifdef NBD_LFS
  20. +#if NBD_LFS
  21. #define _FILE_OFFSET_BITS 64
  22. #define _LARGEFILE_SOURCE
  23. #endif /* NBD_LFS */
  24. --
  25. 1.6.3.3