diff options
author | Sam James <sam@gentoo.org> | 2023-04-19 04:29:10 +0100 |
---|---|---|
committer | Mike Frysinger <vapier@gmail.com> | 2023-04-19 16:44:51 -0400 |
commit | eb8831a1416ab2ee8123b3add78421c2aa316b39 (patch) | |
tree | 3d5759e4a48db6a806174a8c8f1f0af24be11dba /src/start-stop-daemon/start-stop-daemon.c | |
parent | 0b5cb3abcb500d38f7302addb4182b07c1dc2ad7 (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/start-stop-daemon/start-stop-daemon.c')
-rw-r--r-- | src/start-stop-daemon/start-stop-daemon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/start-stop-daemon/start-stop-daemon.c b/src/start-stop-daemon/start-stop-daemon.c index c277345d..ef6f454e 100644 --- a/src/start-stop-daemon/start-stop-daemon.c +++ b/src/start-stop-daemon/start-stop-daemon.c @@ -179,9 +179,9 @@ extern char **environ; # define SYS_ioprio_set __NR_ioprio_set #endif #if !defined(__DragonFly__) -static inline int ioprio_set(int which _unused, - int who _unused, - int ioprio _unused) +static inline int ioprio_set(int which RC_UNUSED, + int who RC_UNUSED, + int ioprio RC_UNUSED) { #ifdef SYS_ioprio_set return syscall(SYS_ioprio_set, which, who, ioprio); |