From 99660883f075bacb16d7284523a36f8e6c69a665 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 5 Aug 2014 12:50:52 +0000 Subject: Since old SQLite versions do not have sqlite3_errstr(), provide a dummy fallback implementation. Do not bother to decode the error, SQLite error codes are not useful enough for that to be worthwhile. Note that using sqlite3_errmsg(db) would be a bad idea: On malloc() failure, db is NULL, which would cause a segfault. Issue noticed by kristaps@. --- configure | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 0fd937f8..991c7669 100755 --- a/configure +++ b/configure @@ -35,6 +35,8 @@ runtest getsubopt GETSUBOPT runtest mmap MMAP runtest ohash OHASH -lutil runtest reallocarray REALLOCARRAY +runtest sqlite3_errstr SQLITE3_ERRSTR \ + "-I/usr/local/include -L/usr/local/lib -lsqlite3" runtest strcasestr STRCASESTR runtest strlcat STRLCAT runtest strlcpy STRLCPY -- cgit v1.2.3-56-ge451