Skip to content

Commit afffb53

Browse files
rustyrussellmadelinevibes
authored andcommitted
tools: enforce minimum sqlite3 version number.
This is RHEL8's version. Signed-off-by: Rusty Russell <[email protected]> Changelog-Changed: build: we now require sqlite3 version 3.26 or above (released 2018-12-01).
1 parent f542949 commit afffb53

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/headerversions.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ static const char template[] =
3232
" if (SQLITE_VERSION_NUMBER + 1000000 < sqlite3_libversion_number())\n"
3333
" errx(1, \"SQLITE major version mismatch: compiled %%u, now %%u\",\n"
3434
" SQLITE_VERSION_NUMBER, sqlite3_libversion_number());\n"
35+
" /* Earliest supported sqlite3 version */\n"
36+
" if (SQLITE_VERSION_NUMBER < 3026000)\n"
37+
" errx(1, \"SQLITE version %%u too old (minimum 3.26)\",\n"
38+
" SQLITE_VERSION_NUMBER);\n"
3539
)
3640
"}\n";
3741

0 commit comments

Comments
 (0)