sys-block/mtx: fix c23 pointer declarations

Closes: https://bugs.gentoo.org/943904
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert 2025-11-30 22:17:46 +01:00
parent e240e34daa
commit 097354da86
No known key found for this signature in database
GPG Key ID: CE36E117202E3842
2 changed files with 21 additions and 2 deletions

View File

@ -0,0 +1,16 @@
Description: Fix compilation with gcc15 / c23
Author: Dan Horák <dan@danny.cz>
Bug-Debian: http://bugs.debian.org/1097421
--- a/mtx.h
+++ b/mtx.h
@@ -222,7 +222,8 @@ typedef unsigned char Direction_T;
#define Input 0
#define Output 1
#else
-typedef enum { false, true } boolean;
+#include <stdbool.h>
+typedef bool boolean;
typedef enum { Input, Output } Direction_T;
#endif

View File

@ -1,7 +1,7 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
DESCRIPTION="Utilities for controlling SCSI media changers and tape drives"
HOMEPAGE="https://sourceforge.net/projects/mtx/"
@ -11,7 +11,10 @@ LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~hppa ppc ppc64 ~riscv ~sparc x86"
PATCHES=( "${FILESDIR}"/${P}-fix-buildsystem.patch )
PATCHES=(
"${FILESDIR}"/${P}-fix-buildsystem.patch
"${FILESDIR}"/${P}-c23.patch
)
DOCS=( CHANGES COMPATABILITY FAQ README TODO )
HTML_DOCS=( mtxl.README.html )