app-misc/dtach: fix build w/ gcc-15

Closes: https://bugs.gentoo.org/944323
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-03-22 20:12:17 +00:00
parent c04e17d888
commit 4a482237f3
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 25 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -11,6 +11,10 @@ SLOT="0"
LICENSE="GPL-2+"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
PATCHES=(
"${FILESDIR}"/${PN}-0.9-c23.patch
)
src_install() {
dobin dtach
doman dtach.1

View File

@ -0,0 +1,20 @@
https://bugs.gentoo.org/944323
https://github.com/crigler/dtach/pull/21
From 6d80909a8c0fd19717010a3c76fec560f988ca48 Mon Sep 17 00:00:00 2001
From: Rudi Heitbaum <rudi@heitbaum.com>
Date: Mon, 9 Dec 2024 12:35:09 +0000
Subject: [PATCH] fix gcc-15 build
--- a/attach.c
+++ b/attach.c
@@ -96,7 +96,7 @@ die(int sig)
/* Window size change. */
static RETSIGTYPE
-win_change()
+win_change(int sig)
{
signal(SIGWINCH, win_change);
win_changed = 1;