From 4ba0a84718a52b814486252f81c6248996633706 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Mon, 22 Jun 2020 23:24:02 +0300 Subject: [PATCH] core/linux/SDL_threadprio.c: fix build against older glibc versions --- src/core/linux/SDL_threadprio.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/linux/SDL_threadprio.c b/src/core/linux/SDL_threadprio.c index 0ea8239f6..67be27a4a 100644 --- a/src/core/linux/SDL_threadprio.c +++ b/src/core/linux/SDL_threadprio.c @@ -32,6 +32,11 @@ #include #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