git: 28ff0e60d57b - 2026Q3 - databases/kyotocabinet: fix missing prototype warnings

Gleb Popov <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch 2026Q3 has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=28ff0e60d57b1883377fbd619660483e702905d7

commit 28ff0e60d57b1883377fbd619660483e702905d7
Author:     Matthias Andree <[email protected]>
AuthorDate: 2026-07-24 09:48:36 +0000
Commit:     Gleb Popov <[email protected]>
CommitDate: 2026-08-14 11:16:45 +0000

    databases/kyotocabinet: fix missing prototype warnings
    
    No upstream response in 14 days, let's get this locally, because
    else we get all sort of warnings in downstream ports using kc.
    
    PR:             296665
    Approved by:    sunpoet (maintainer timeout)
    MFH:            2026Q3
    
    (cherry picked from commit 76a04c511595baf51d75ec318be553ef827205ef)
---
 databases/kyotocabinet/Makefile                  |  2 +-
 databases/kyotocabinet/files/patch-kclangc.h     | 28 ++++++++++++++++++++++++
 databases/kyotocabinet/files/patch-kclangctest.c | 11 ++++++++++
 3 files changed, 40 insertions(+), 1 deletion(-)

diff --git a/databases/kyotocabinet/Makefile b/databases/kyotocabinet/Makefile
index cd5f853979b1..dd4080c16c82 100644
--- a/databases/kyotocabinet/Makefile
+++ b/databases/kyotocabinet/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	kyotocabinet
 PORTVERSION=	1.2.80
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	databases
 MASTER_SITES=	https://dbmx.net/kyotocabinet/pkg/ \
 		LOCAL/sunpoet
diff --git a/databases/kyotocabinet/files/patch-kclangc.h b/databases/kyotocabinet/files/patch-kclangc.h
new file mode 100644
index 000000000000..4964f27e633c
--- /dev/null
+++ b/databases/kyotocabinet/files/patch-kclangc.h
@@ -0,0 +1,28 @@
+--- kclangc.h.orig	2023-04-13 18:22:12 UTC
++++ kclangc.h
+@@ -258,14 +258,14 @@ size_t kclevdist(const void* abuf, size_t asiz, const 
+  * Get the quiet Not-a-Number value.
+  * @return the quiet Not-a-Number value.
+  */
+-double kcnan();
++double kcnan(void);
+ 
+ 
+ /**
+  * Get the positive infinity value.
+  * @return the positive infinity value.
+  */
+-double kcinf();
++double kcinf(void);
+ 
+ 
+ /**
+@@ -1522,7 +1522,7 @@ typedef struct {
+  * @note The object of the return value should be released with the kclistdel function when it is
+  * no longer in use.
+  */
+-KCLIST* kclistnew();
++KCLIST* kclistnew(void);
+ 
+ 
+ /**
diff --git a/databases/kyotocabinet/files/patch-kclangctest.c b/databases/kyotocabinet/files/patch-kclangctest.c
new file mode 100644
index 000000000000..dee338785487
--- /dev/null
+++ b/databases/kyotocabinet/files/patch-kclangctest.c
@@ -0,0 +1,11 @@
+--- kclangctest.c.orig	2012-05-24 11:32:00 UTC
++++ kclangctest.c
+@@ -91,7 +91,7 @@ int main(int argc, char **argv) {
+ 
+ 
+ /* print the usage and exit */
+-static void usage() {
++static void usage(void) {
+   eprintf("%s: test cases of the C binding of Kyoto Cabinet\n", g_progname);
+   eprintf("\n");
+   eprintf("usage:\n");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.