--- src/sgDb.c_orig 2015-06-02 13:27:20.960144091 +0200 +++ src/sgDb.c 2015-06-02 13:27:34.600164097 +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)