app-admin/clog: fix build on musl

Closes: https://bugs.gentoo.org/715248
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin 2025-10-06 23:38:31 +03:00
parent 5b98023320
commit bab48e2eec
No known key found for this signature in database
GPG Key ID: 02A0AF503D120504
2 changed files with 13 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -16,6 +16,7 @@ RESTRICT="test" # No test suite on tar.gz
PATCHES=(
"${FILESDIR}"/${PN}-1.3.0-gcc13.patch
"${FILESDIR}"/${PN}-1.3.0-musl.patch
)
src_prepare() {

View File

@ -0,0 +1,11 @@
--- a/src/libshared/src/FS.cpp
+++ b/src/libshared/src/FS.cpp
@@ -41,7 +41,7 @@
#include <shared.h>
#include <format.h>
-#if defined SOLARIS || defined NETBSD || defined FREEBSD
+#if defined SOLARIS || defined NETBSD || defined FREEBSD || !defined(__GLIBC__)
#include <limits.h>
#endif