Commit 4ba0a84718a52b814486252f81c6248996633706

Ozkan Sezer 2020-06-22T23:24:02

core/linux/SDL_threadprio.c: fix build against older glibc versions

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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