From: Julio Sánchez Fernández Date: Mon, 19 Apr 1999 17:56:48 +0000 (+0000) Subject: Move declaration of st X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~161 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bb7a0b816ebbc81a8183fd4eb56b1a0cfde20281;p=openldap Move declaration of st --- 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) ); }