diff options
-rw-r--r-- | lib/tdb/common/open.c | 3 |
1 files changed, 3 insertions, 0 deletions
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. */ |