summaryrefslogtreecommitdiffstats
path: root/ctdb/lib/tdb/common/open.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-08-06 11:47:08 -0700
committerStefan Metzmacher <metze@samba.org>2009-12-16 08:03:42 +0100
commit41d4e2dc7c4b50fc96a522048f3ff37bbc61158f (patch)
tree9b82fae9d4af41ab4418166741e682f57180e74f /ctdb/lib/tdb/common/open.c
parente1217b7bdb3383f4388470bb9e7d0acedbdb6351 (diff)
downloadsamba-41d4e2dc7c4b50fc96a522048f3ff37bbc61158f.tar.gz
samba-41d4e2dc7c4b50fc96a522048f3ff37bbc61158f.tar.xz
samba-41d4e2dc7c4b50fc96a522048f3ff37bbc61158f.zip
Add define guards around otherwise unused variable. Jeremy. (cherry picked from samba commit 4fc9f9c3f943cdeb27e37f0ee068cdd0da7cb00c)
Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit 6f8614de0f20d4c507aecd744d9c3f6545078127)
Diffstat (limited to 'ctdb/lib/tdb/common/open.c')
-rw-r--r--ctdb/lib/tdb/common/open.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ctdb/lib/tdb/common/open.c b/ctdb/lib/tdb/common/open.c
index 2dcdd4bde74..2e6a707497b 100644
--- a/ctdb/lib/tdb/common/open.c
+++ b/ctdb/lib/tdb/common/open.c
@@ -407,7 +407,10 @@ void *tdb_get_logging_private(struct tdb_context *tdb)
static int tdb_reopen_internal(struct tdb_context *tdb, bool active_lock)
{
+#if !defined(LIBREPLACE_PREAD_NOT_REPLACED) || \
+ !defined(LIBREPLACE_PWRITE_NOT_REPLACED)
struct stat st;
+#endif
if (tdb->flags & TDB_INTERNAL) {
return 0; /* Nothing to do. */