瀏覽代碼

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

Ozkan Sezer 5 年之前
父節點
當前提交
4ba0a84718
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/core/linux/SDL_threadprio.c

+ 5 - 0
src/core/linux/SDL_threadprio.c

@@ -32,6 +32,11 @@
 #include <pthread.h>
 #include <pthread.h>
 #include "SDL_system.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"
 #include "SDL_dbus.h"
 
 
 #if SDL_USE_LIBDBUS
 #if SDL_USE_LIBDBUS