lfs.h: fix build with --disable-lfs
authorPeter Korsgaard <jacmet@sunsite.dk>
Sun, 22 Nov 2009 22:11:42 +0000 (23:11 +0100)
committerWouter Verhelst <w@uter.be>
Mon, 23 Nov 2009 09:30:38 +0000 (10:30 +0100)
Running ./configure with --disable-lfs #define's NBD_LFS to 0 and
doesn't #undef it, so the LFS check should use #if rather than #ifdef
similar to how it is done in cliserv.h

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>

lfs.h

diff --git a/lfs.h b/lfs.h
index 8f90f81..929ce08 100644 (file)
--- a/lfs.h
+++ b/lfs.h
@@ -2,7 +2,7 @@
 #define LFS_H
 
 #include "config.h"
-#ifdef NBD_LFS
+#if NBD_LFS
 #define _FILE_OFFSET_BITS 64
 #define _LARGEFILE_SOURCE
 #endif /* NBD_LFS */