mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-29 14:38:29 +00:00
linux/SDL_threadprio.c: fix build on older systems:
SCHED_RESET_ON_FORK is in kernel >= 2.6.32.
This commit is contained in:
@@ -36,6 +36,10 @@
|
|||||||
#ifndef RLIMIT_RTTIME
|
#ifndef RLIMIT_RTTIME
|
||||||
#define RLIMIT_RTTIME 15
|
#define RLIMIT_RTTIME 15
|
||||||
#endif
|
#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"
|
#include "SDL_dbus.h"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user