gentoo-overlay/sys-apps/systemd/files/0010-basic-Support-musl-def...

31 lines
901 B
Diff
Raw Normal View History

From ff5d3856b452bc6890b54a94b40302029195d965 Mon Sep 17 00:00:00 2001
From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
Date: Sun, 18 Aug 2024 02:44:04 -0500
Subject: [PATCH 10/34] basic: Support musl definition of rlim_t
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
This cannot be upstreamed, but we should find a better way anyway.
Signed-off-by: Alexander Miroshnichenko <alex@millerson.name>
---
src/basic/format-util.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/basic/format-util.h b/src/basic/format-util.h
index ba7cff6a8b55..6239051d5f88 100644
--- a/src/basic/format-util.h
+++ b/src/basic/format-util.h
@@ -43,7 +43,7 @@ assert_cc(sizeof(gid_t) == sizeof(uint32_t));
#endif
#if SIZEOF_RLIM_T == 8
-# define RLIM_FMT "%" PRIu64
+# define RLIM_FMT "%llu"
#elif SIZEOF_RLIM_T == 4
# define RLIM_FMT "%" PRIu32
#else
--
2.41.0