From 15cbddf49751b46967738f5ae2b50d693c183517 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sun, 13 Dec 2020 18:00:20 +0300 Subject: [PATCH] linux/SDL_threadprio.c: fix build on older systems: SCHED_RESET_ON_FORK is in kernel >= 2.6.32. --- 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 5b1835c9c..74167a4c7 100644 --- a/src/core/linux/SDL_threadprio.c +++ b/src/core/linux/SDL_threadprio.c @@ -36,6 +36,10 @@ #ifndef RLIMIT_RTTIME #define RLIMIT_RTTIME 15 #endif +/* SCHED_RESET_ON_FORK is in kernel >= 2.6.32. */ +#ifndef SCHED_RESET_ON_FORK +#define SCHED_RESET_ON_FORK 0x40000000 +#endif #include "SDL_dbus.h"