From bb7a0b816ebbc81a8183fd4eb56b1a0cfde20281 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julio=20S=C3=A1nchez=20Fern=C3=A1ndez?= Date: Mon, 19 Apr 1999 17:56:48 +0000 Subject: [PATCH] Move declaration of st --- libraries/libldbm/ldbm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/libldbm/ldbm.c b/libraries/libldbm/ldbm.c index 678a7e5b3e..0ce41481c8 100644 --- a/libraries/libldbm/ldbm.c +++ b/libraries/libldbm/ldbm.c @@ -426,6 +426,9 @@ LDBM ldbm_open( char *name, int rw, int mode, int dbcachesize ) { LDBM db; +#ifdef HAVE_ST_BLKSIZE + struct stat st; +#endif LDBM_LOCK; @@ -436,7 +439,6 @@ ldbm_open( char *name, int rw, int mode, int dbcachesize ) #ifdef HAVE_ST_BLKSIZE if ( dbcachesize > 0 && stat( name, &st ) == 0 ) { - struct stat st; dbcachesize = (dbcachesize / st.st_blksize); gdbm_setopt( db, GDBM_CACHESIZE, &dbcachesize, sizeof(int) ); } -- 2.39.5