aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2023-06-28 03:10:13 +0000
committerXin LI <delphij@FreeBSD.org>2023-06-28 03:10:14 +0000
commite45b6d5b6e2c6e3a9bdff6428f6d053f376fc0ac (patch)
tree60fcf6e4ffc617f6ee2e41bd96363a509c880333
parent85eecee4aa99454769dd7658db18a540d6a50830 (diff)
downloadports-e45b6d5b6e2c6e3a9bdff6428f6d053f376fc0ac.tar.gz
ports-e45b6d5b6e2c6e3a9bdff6428f6d053f376fc0ac.zip
devel/rcs: Fix build on -CURRENT.
PR: ports/272217 Approved-by: Chris Hutchinson (maintainer)
-rw-r--r--devel/rcs/Makefile1
-rw-r--r--devel/rcs/files/patch-lib_obstack.h11
2 files changed, 12 insertions, 0 deletions
diff --git a/devel/rcs/Makefile b/devel/rcs/Makefile
index 0f0a6eff008b..791e0619ee8b 100644
--- a/devel/rcs/Makefile
+++ b/devel/rcs/Makefile
@@ -1,5 +1,6 @@
PORTNAME= rcs
PORTVERSION= 5.10.1
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= GNU
diff --git a/devel/rcs/files/patch-lib_obstack.h b/devel/rcs/files/patch-lib_obstack.h
new file mode 100644
index 000000000000..bd3a602b1199
--- /dev/null
+++ b/devel/rcs/files/patch-lib_obstack.h
@@ -0,0 +1,11 @@
+--- lib/obstack.h.orig 2022-01-27 03:00:30 UTC
++++ lib/obstack.h
+@@ -226,7 +226,7 @@ extern _OBSTACK_SIZE_T _obstack_memory_used (struct ob
+ more memory. This can be set to a user defined function which
+ should either abort gracefully or use longjump - but shouldn't
+ return. The default action is to print a message and abort. */
+-extern __attribute_noreturn__ void (*obstack_alloc_failed_handler) (void);
++extern void (*obstack_alloc_failed_handler) (void);
+
+ /* Exit value used when 'print_and_abort' is used. */
+ extern int obstack_exit_failure;