From 16b288f53c66d3ccb8d27ad848bbd8bc767c316b Mon Sep 17 00:00:00 2001 From: fredzio Date: Fri, 16 Apr 2021 08:38:11 +0200 Subject: [PATCH] Re-add dropped struct keyword to fix build. rtprio is both a struct and a function, so we need to be explicit. ../../../components/misc/thread.cpp:53:9: error: must use 'struct' tag to refer to type 'rtprio' in this scope rtprio prio; ^ struct /usr/include/sys/rtprio.h:91:5: note: struct 'rtprio' is hidden by a non-type declaration of 'rtprio' here int rtprio(int, pid_t, struct rtprio *); ^ 1 error generated. --- components/misc/thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/misc/thread.cpp b/components/misc/thread.cpp index 8101779bc..c78bf17e5 100644 --- a/components/misc/thread.cpp +++ b/components/misc/thread.cpp @@ -50,7 +50,7 @@ namespace Misc { void setCurrentThreadIdlePriority() { - rtprio prio; + struct rtprio prio; prio.type = RTP_PRIO_IDLE; prio.prio = RTP_PRIO_MAX; if (rtprio_thread(RTP_SET, 0, &prio) == 0)