aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andree <mandree@FreeBSD.org>2026-07-24 09:48:36 +0000
committerGleb Popov <arrowd@FreeBSD.org>2026-08-14 11:16:45 +0000
commit28ff0e60d57b1883377fbd619660483e702905d7 (patch)
tree6bb096004604f0168309a0b831a73f03b6ce8a69
parentd03d45178f4b716d7e34b1e024b51f83fb8325ac (diff)
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)
-rw-r--r--databases/kyotocabinet/Makefile2
-rw-r--r--databases/kyotocabinet/files/patch-kclangc.h28
-rw-r--r--databases/kyotocabinet/files/patch-kclangctest.c11
3 files changed, 40 insertions, 1 deletions
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");