From 4fc9f9c3f943cdeb27e37f0ee068cdd0da7cb00c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 6 Aug 2009 11:47:08 -0700 Subject: Add define guards around otherwise unused variable. Jeremy. --- lib/tdb/common/open.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/tdb/common/open.c') diff --git a/lib/tdb/common/open.c b/lib/tdb/common/open.c index 2dcdd4bde7..2e6a707497 100644 --- a/lib/tdb/common/open.c +++ b/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. */ -- cgit