From cced5eb9376bea92e9005bdf99dc648fc541b200 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 4 Jun 2020 09:23:18 -0700 Subject: [PATCH] Fixed bug 5169 - Can not build current sources because of recent thread management changes Manuel Alfayate Corchete I'm trying to build SDL2 with threads support here in GNU/Linux, both X86 and ARM, and it does not seem to be possible ATM: /home/manuel/src/SDLLLL/src/core/linux/SDL_threadprio.c:233:26: error: 'rtkit_max_realtime_priority' undeclared (first use in this function) --- src/core/linux/SDL_threadprio.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/linux/SDL_threadprio.c b/src/core/linux/SDL_threadprio.c index edfe7d11c..0ea8239f6 100644 --- a/src/core/linux/SDL_threadprio.c +++ b/src/core/linux/SDL_threadprio.c @@ -181,6 +181,10 @@ rtkit_setpriority_realtime(pid_t thread, int rt_priority) } return SDL_TRUE; } +#else + +#define rtkit_max_realtime_priority 99 + #endif /* dbus */ #endif /* threads */