From d24ef0213b065ec4faa6ea3cad07788626598b85 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sat, 25 Feb 2023 00:31:36 +0100
Subject: [PATCH] SDL_threadprio.c uses SCHED_RR and SCHED_FIFO from sched.h
---
src/core/linux/SDL_threadprio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/core/linux/SDL_threadprio.c b/src/core/linux/SDL_threadprio.c
index cc690853de34..8fa687140f42 100644
--- a/src/core/linux/SDL_threadprio.c
+++ b/src/core/linux/SDL_threadprio.c
@@ -26,6 +26,7 @@
#include <sys/time.h>
#include <sys/resource.h>
#include <pthread.h>
+#include <sched.h>
#include <unistd.h>
/* RLIMIT_RTTIME requires kernel >= 2.6.25 and is in glibc >= 2.14 */
@@ -40,7 +41,6 @@
#include "SDL_dbus.h"
#if SDL_USE_LIBDBUS
-#include <sched.h>
/* d-bus queries to org.freedesktop.RealtimeKit1. */
#define RTKIT_DBUS_NODE "org.freedesktop.RealtimeKit1"