x11-plugins/wmbattery: fix LTO build

Closes: https://bugs.gentoo.org/961823
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
This commit is contained in:
Bernard Cafarelli 2025-08-22 01:23:42 +02:00
parent cbae077439
commit 13440743af
No known key found for this signature in database
GPG Key ID: 00F7AB331B0F097F
2 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -Naur wmbattery-2.56.orig/sonypi.c wmbattery-2.56/sonypi.c
--- wmbattery-2.56.orig/sonypi.c 2022-06-03 21:22:12.000000000 +0200
+++ wmbattery-2.56/sonypi.c 2025-08-22 01:21:59.483780914 +0200
@@ -24,7 +24,7 @@
return 1;
}
-inline int sonypi_ioctl(int ioctlno, void *param)
+static int sonypi_ioctl(int ioctlno, void *param)
{
if (ioctl(spicfd, ioctlno, param) < 0)
return 0;

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
@ -20,6 +20,7 @@ RDEPEND="apm? ( sys-apps/apmd )
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
PATCHES=( "${FILESDIR}"/${P}-lto.patch )
DOCS=( ChangeLog README TODO )
src_configure() {