git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f2cd92
)
tdb: Use #ifdef instead of #if for config.h definitions
author
Andreas Schneider
<asn@samba.org>
Tue, 20 Nov 2018 13:00:39 +0000
(14:00 +0100)
committer
Gary Lockyer
<gary@samba.org>
Wed, 28 Nov 2018 22:19:21 +0000
(23:19 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
lib/tdb/common/io.c
patch
|
blob
|
history
diff --git
a/lib/tdb/common/io.c
b/lib/tdb/common/io.c
index 94b316331c123396581722c47dd2b4faee42313b..df460176159728eda44d50c6ccbba23b93fd3951 100644
(file)
--- 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
+#if
def
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
+#if
def
HAVE_POSIX_FALLOCATE
ret = tdb_posix_fallocate(tdb, size, addition);
if (ret == 0) {
return 0;