net-print/cnijfilter2: fix gcc-23 issues

Closes: https://bugs.gentoo.org/944980
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone 2024-11-28 12:09:41 +01:00
parent 3b2cc73474
commit 479248d6e0
No known key found for this signature in database
GPG Key ID: FBE5925C5B02CE58
2 changed files with 16 additions and 2 deletions

View File

@ -11,6 +11,8 @@ DESCRIPTION="IJ Printer Driver"
HOMEPAGE="https://www.usa.canon.com/support/p/pixma-g4270#idReference%3Dsoftware-drivers"
SRC_URI="https://gdlp01.c-wss.com/gds/7/0100012137/01/${PN}-source-${PV}-1.tar.gz"
S="${WORKDIR}"/${MY_P}
LICENSE="Canon-IJ"
SLOT="0"
KEYWORDS="~amd64 ~x86"
@ -20,13 +22,12 @@ DEPEND="virtual/libusb:1
net-print/cups"
RDEPEND="${DEPEND}"
S="${WORKDIR}"/${MY_P}
PATCHES=(
"${FILESDIR}"/${PN}-6.50-gentoo.patch
"${FILESDIR}"/${PN}-5.80-cflags.patch
"${FILESDIR}"/${PN}-5.80-fno-common.patch
"${FILESDIR}"/${PN}-6.60-c99.patch
"${FILESDIR}"/${P}-c23.patch
)
pkg_setup() {

View File

@ -0,0 +1,13 @@
--- a/lgmon3/src/common/libcnnet2_type.h 2024-11-28 10:21:02.088649219 +0100
+++ b/lgmon3/src/common/libcnnet2_type.h 2024-11-28 10:22:01.171874307 +0100
@@ -48,8 +48,10 @@
} CNNET2_SETTING_FLAGS;
#ifndef __cplusplus
+#if (__STD_VERSION__ <= 201710L)
typedef char bool;
#endif
+#endif
typedef struct {
int nicIndex_;