ldbm_open( char *name, int rw, int mode, int dbcachesize )
{
LDBM db;
+#ifdef HAVE_ST_BLKSIZE
+ struct stat st;
+#endif
LDBM_LOCK;
#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) );
}