Explorar o código

Define SCHED_ISO if not defined

Marc Di Luzio %!s(int64=6) %!d(string=hai) anos
pai
achega
82efafd54d
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  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.
  */