diff options
author | Jeremy Allison <jra@samba.org> | 2009-08-06 11:47:08 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-08-06 11:47:08 -0700 |
commit | 4fc9f9c3f943cdeb27e37f0ee068cdd0da7cb00c (patch) | |
tree | 5876264ac397321873b87d8a28603048d6887643 /lib/tdb/common | |
parent | 8a5cc1317ad4f5705b8a74286eb2b7dfdc9d89b4 (diff) | |
download | samba-4fc9f9c3f943cdeb27e37f0ee068cdd0da7cb00c.tar.gz samba-4fc9f9c3f943cdeb27e37f0ee068cdd0da7cb00c.tar.bz2 samba-4fc9f9c3f943cdeb27e37f0ee068cdd0da7cb00c.zip |
Add define guards around otherwise unused variable.
Jeremy.
Diffstat (limited to 'lib/tdb/common')
-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. */ |