[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Nbd] [PATCH] lfs.h: fix !LFS builds



Commit 448637fba4 (Fix 32/64 bit confusion) broke !LFS builds as it
added the PARAM_OFFT defines inside the wrong conditional.

Signed-off-by: Peter Korsgaard <jacmet@...726...>
---
 lfs.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lfs.h b/lfs.h
index 64a03de..68d3b81 100644
--- a/lfs.h
+++ b/lfs.h
@@ -6,14 +6,14 @@
 #define _FILE_OFFSET_BITS 64
 #ifndef _LARGEFILE_SOURCE
 #define _LARGEFILE_SOURCE
+#endif
 #define PARAM_OFFT PARAM_INT64
 #else
 #define PARAM_OFFT PARAM_INT
-#endif
+#endif /* NBD_LFS */
 #ifdef HAVE_SYNC_FILE_RANGE
 #define USE_SYNC_FILE_RANGE
 #define _GNU_SOURCE
 #endif /* HAVE_SYNC_FILE_RANGE */
-#endif /* NBD_LFS */
 
 #endif /* LFS_H */
-- 
1.7.7.1




Reply to: