commit | 7c05736eb61efc1ad7522a3a4bad4a2ebb410107 | [log] [tgz] |
---|---|---|
author | Ozkan Sezer <sezeroz@gmail.com> | Mon Jun 22 23:24:02 2020 +0300 |
committer | Ozkan Sezer <sezeroz@gmail.com> | Mon Jun 22 23:24:02 2020 +0300 |
tree | 790013587e18b3af33d8132a5912acaf4c56ec76 | |
parent | 152db424aa3fc5bf75a74ca14e5f3b63d9b14584 [diff] |
core/linux/SDL_threadprio.c: fix build against older glibc versions
diff --git a/src/core/linux/SDL_threadprio.c b/src/core/linux/SDL_threadprio.c index 0ea8239..67be27a 100644 --- a/src/core/linux/SDL_threadprio.c +++ b/src/core/linux/SDL_threadprio.c
@@ -32,6 +32,11 @@ #include <pthread.h> #include "SDL_system.h" +/* RLIMIT_RTTIME requires kernel >= 2.6.25 and is in glibc >= 2.14 */ +#ifndef RLIMIT_RTTIME +#define RLIMIT_RTTIME 15 +#endif + #include "SDL_dbus.h" #if SDL_USE_LIBDBUS