diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2012-06-09 11:00:13 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2012-06-09 11:00:13 +0000 |
commit | c81baf94fd62c83c95a70727ad90da88092ccad7 (patch) | |
tree | f032fedb1a68aa9c956128a0eff72ba259d5f39e /mansearch.c | |
parent | b6082f77bdc720375ca18175f7baa41f15208f85 (diff) | |
download | mandoc-c81baf94fd62c83c95a70727ad90da88092ccad7.tar.gz |
Add a compatibility interface for ohash.
This include's espie@'s wholesale src/lib/libc/ohash directory from OpenBSD
into compat_ohash.c (with a single copyright/license notice at the top)
and src/include/ohash.h as compat_ohash.h.
The ohash_int.h part of compat_ohash.c has been changed only in that ohash.h
points to compat_ohash.h.
Added HAVE_OHASH test (test-ohash.c) to Makefile.
In mandocdb.c and mansearch.c, check HAVE_OHASH test for inclusion.
Diffstat (limited to 'mansearch.c')
-rw-r--r-- | mansearch.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mansearch.c b/mansearch.c index 1bdd9d0b..5aa30623 100644 --- a/mansearch.c +++ b/mansearch.c @@ -30,7 +30,11 @@ #include <string.h> #include <unistd.h> +#ifdef HAVE_OHASH #include <ohash.h> +#else +#include "compat_ohash.h" +#endif #include <sqlite3.h> #include "mandoc.h" |