diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-05 12:34:08 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-05 12:34:08 +0000 |
commit | 3269dd3e704bc9880455b95bb67a490b5b503216 (patch) | |
tree | d9a314d25c52ced4f6c4d76743816a7f00be6dd2 /mansearch.c | |
parent | e944404f04a517714ef87d68bb7a032f7f2328c4 (diff) | |
download | mandoc-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.c | 5 |
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" |