aboutsummaryrefslogtreecommitdiff
path: root/src/librc/librc.c
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-04-19 04:29:10 +0100
committerMike Frysinger <vapier@gmail.com>2023-04-19 16:44:51 -0400
commiteb8831a1416ab2ee8123b3add78421c2aa316b39 (patch)
tree3d5759e4a48db6a806174a8c8f1f0af24be11dba /src/librc/librc.c
parent0b5cb3abcb500d38f7302addb4182b07c1dc2ad7 (diff)
Rename attribute macros to namespaced RC_*
This conflicts with linux-headers which uses __unused for some padding members on ppc64le at least. Closes: https://github.com/OpenRC/openrc/issues/622
Diffstat (limited to 'src/librc/librc.c')
-rw-r--r--src/librc/librc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c
index da2ed4d0..a1bd706d 100644
--- a/src/librc/librc.c
+++ b/src/librc/librc.c
@@ -249,7 +249,7 @@ detect_prefix(const char *systype)
}
static const char *
-detect_container(const char *systype _unused)
+detect_container(const char *systype RC_UNUSED)
{
#ifdef __FreeBSD__
if (systype) {
@@ -313,7 +313,7 @@ detect_container(const char *systype _unused)
}
static const char *
-detect_vm(const char *systype _unused)
+detect_vm(const char *systype RC_UNUSED)
{
#ifdef __NetBSD__
if (systype) {