瀏覽代碼

Define SCHED_ISO if not defined

Marc Di Luzio 6 年之前
父節點
當前提交
82efafd54d
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      daemon/gamemode-sched.c

+ 7 - 0
daemon/gamemode-sched.c

@@ -41,6 +41,13 @@ POSSIBILITY OF SUCH DAMAGE.
 #include <sys/resource.h>
 #include <sys/sysinfo.h>
 
+/* SCHED_ISO may not be defined as it is a reserved value not yet
+ * implemented in official kernel sources, see linux/sched.h.
+ */
+#ifndef SCHED_ISO
+#define SCHED_ISO 4
+#endif
+
 /**
  * Priority to renice the process to.
  */