aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mansearch.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-05 12:34:08 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-05 12:34:08 +0000
commit3269dd3e704bc9880455b95bb67a490b5b503216 (patch)
treed9a314d25c52ced4f6c4d76743816a7f00be6dd2 /mansearch.c
parente944404f04a517714ef87d68bb7a032f7f2328c4 (diff)
downloadmandoc-3269dd3e704bc9880455b95bb67a490b5b503216.tar.gz
mandoc-3269dd3e704bc9880455b95bb67a490b5b503216.tar.zst
mandoc-3269dd3e704bc9880455b95bb67a490b5b503216.zip
If an old SQLite version doesn't provide SQLITE_DETERMINISTIC,
simply ignore it, as using it is merely an optimization. Issue noticed by kristaps@.
Diffstat (limited to 'mansearch.c')
-rw-r--r--mansearch.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mansearch.c b/mansearch.c
index 259a1946..86a046f8 100644
--- a/mansearch.c
+++ b/mansearch.c
@@ -1,4 +1,4 @@
-/* $Id: mansearch.c,v 1.39 2014/07/24 20:30:45 schwarze Exp $ */
+/* $Id: mansearch.c,v 1.40 2014/08/05 12:34:08 schwarze Exp $ */
/*
* Copyright (c) 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -38,6 +38,9 @@
#include "compat_ohash.h"
#endif
#include <sqlite3.h>
+#ifndef SQLITE_DETERMINISTIC
+#define SQLITE_DETERMINISTIC 0
+#endif
#include "mandoc.h"
#include "mandoc_aux.h"