From 01de00d57ffd6c2168c084f283a0a6aad0c3c3dc Mon Sep 17 00:00:00 2001 From: jasper Date: Sun, 8 Apr 2018 13:10:25 +0000 Subject: [PATCH] fix build with clang; from freebsd --- databases/kyotocabinet/patches/patch-kcdbext_h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 databases/kyotocabinet/patches/patch-kcdbext_h diff --git a/databases/kyotocabinet/patches/patch-kcdbext_h b/databases/kyotocabinet/patches/patch-kcdbext_h new file mode 100644 index 00000000000..2a36ef75397 --- /dev/null +++ b/databases/kyotocabinet/patches/patch-kcdbext_h @@ -0,0 +1,16 @@ +$OpenBSD: patch-kcdbext_h,v 1.1 2018/04/08 13:10:25 jasper Exp $ + +error: cannot initialize return object of type 'char *' with an rvalue of type 'bool' + +Index: kcdbext.h +--- kcdbext.h.orig ++++ kcdbext.h +@@ -1278,7 +1278,7 @@ class IndexDB { + if (omode_ == 0) { + set_error(_KCCODELINE_, BasicDB::Error::INVALID, "not opened"); + *sp = 0; +- return false; ++ return NULL; + } + if (!cache_) return db_.get(kbuf, ksiz, sp); + size_t dvsiz = 0;