--- sgDb.c 2010-09-09 12:35:22.000000000 +0200 +++ sgDb.c 2017-09-17 19:27:47.347261770 +0200 @@ -112,7 +112,7 @@ } } #endif -#if DB_VERSION_MAJOR == 4 +#if DB_VERSION_MAJOR >= 4 if(globalUpdate || createdb || (dbfile != NULL && stat(dbfile,&st))){ flag = DB_CREATE; if(createdb)