summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-05 12:50:52 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-05 12:50:52 +0000
commite78c9199f3e64722b422088627cfd89d0a1dd5cf (patch)
treeff1e1e1117021c43b8b2d196c6794527e6b64d36 /Makefile
parentd2b3f0c9cdd5730d0a2af274b777dd8d1ad53d57 (diff)
downloadmandoc-e78c9199f3e64722b422088627cfd89d0a1dd5cf.tar.gz
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@.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ca08821b..55798a9b 100644
--- a/Makefile
+++ b/Makefile
@@ -121,6 +121,7 @@ TESTSRCS = test-fgetln.c \
test-mmap.c \
test-ohash.c \
test-reallocarray.c \
+ test-sqlite3_errstr.c \
test-strcasestr.c \
test-strlcat.c \
test-strlcpy.c \
@@ -136,6 +137,7 @@ SRCS = apropos.c \
compat_getsubopt.c \
compat_ohash.c \
compat_reallocarray.c \
+ compat_sqlite3_errstr.c \
compat_strcasestr.c \
compat_strlcat.c \
compat_strlcpy.c \
@@ -281,6 +283,7 @@ COMPAT_OBJS = compat_fgetln.o \
compat_getsubopt.o \
compat_ohash.o \
compat_reallocarray.o \
+ compat_sqlite3_errstr.o \
compat_strcasestr.o \
compat_strlcat.o \
compat_strlcpy.o \