mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
tdb: Use #ifdef instead of #if for config.h definitions
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
parent
9f2cd92c8e
commit
4e8e172090
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user