mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
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:
parent
e240e34daa
commit
097354da86
16
sys-block/mtx/files/mtx-1.3.12-c23.patch
Normal file
16
sys-block/mtx/files/mtx-1.3.12-c23.patch
Normal 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
|
||||
@ -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 )
|
||||
Loading…
x
Reference in New Issue
Block a user