From: Andreas Schneider Date: Tue, 20 Nov 2018 13:00:39 +0000 (+0100) Subject: tdb: Use #ifdef instead of #if for config.h definitions X-Git-Tag: tdb-1.3.17~568 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e8e17209051b6a1c8c95cb21b31f85afb61a17e;p=thirdparty%2Fsamba.git tdb: Use #ifdef instead of #if for config.h definitions Signed-off-by: Andreas Schneider Reviewed-by: Gary Lockyer --- diff --git a/lib/tdb/common/io.c b/lib/tdb/common/io.c index 94b316331c1..df460176159 100644 --- a/lib/tdb/common/io.c +++ b/lib/tdb/common/io.c @@ -96,7 +96,7 @@ static int tdb_ftruncate(struct tdb_context *tdb, off_t length) return ret; } -#if HAVE_POSIX_FALLOCATE +#ifdef HAVE_POSIX_FALLOCATE static int tdb_posix_fallocate(struct tdb_context *tdb, off_t offset, off_t len) { @@ -413,7 +413,7 @@ static int tdb_expand_file(struct tdb_context *tdb, tdb_off_t size, tdb_off_t ad return -1; } -#if HAVE_POSIX_FALLOCATE +#ifdef HAVE_POSIX_FALLOCATE ret = tdb_posix_fallocate(tdb, size, addition); if (ret == 0) { return 0;