mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 03:15:32 +00:00
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.
This commit is contained in:
parent
af8bc7d120
commit
16b288f53c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue