From: Markus Uhlin Subject: [fix] net/swirc segmentation fault on current To: ports@openbsd.org Date: Tue, 23 Sep 2025 20:12:32 +0200 Hi ports@, I attach a fix in this message that fixes net/swirc segmentation fault on OpenBSD 7.8 and greater. The type for 'malloc_options' has changed to an immutable char pointer. Better to not set it at all. Best regards Markus Index: Makefile =================================================================== RCS file: /cvs/ports/net/swirc/Makefile,v diff -u -p -r1.39 Makefile --- Makefile 19 May 2025 16:47:17 -0000 1.39 +++ Makefile 23 Sep 2025 18:04:37 -0000 @@ -1,5 +1,6 @@ COMMENT = curses icb and irc client DISTNAME = swirc-3.5.5 +REVISION = 0 CATEGORIES = net HOMEPAGE = https://www.nifty-networks.net/swirc/ Index: patches/patch-src_main_cpp =================================================================== RCS file: patches/patch-src_main_cpp diff -N patches/patch-src_main_cpp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-src_main_cpp 23 Sep 2025 18:04:37 -0000 @@ -0,0 +1,16 @@ +Fixes segmentation fault on OpenBSD 7.8 and greater. +The type for 'malloc_options' has changed to an immutable char pointer. +Better to not set it at all. + +Index: src/main.cpp +--- src/main.cpp.orig ++++ src/main.cpp +@@ -659,7 +659,7 @@ main(int argc, char *argv[]) + { + char *cp; + +-#if __OpenBSD__ ++#if defined(OpenBSD) && OpenBSD <= 202504 + extern char *malloc_options; + + malloc_options = const_cast("S");