浏览代码

LibC: Remove duplicate definition of sched_param from sched.h

We were lucky until now that nobody included both headers that have a
definition for this (identical) struct.
kleines Filmröllchen 3 年之前
父节点
当前提交
7bb34279cd
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      Userland/Libraries/LibC/sched.h

+ 1 - 4
Userland/Libraries/LibC/sched.h

@@ -6,6 +6,7 @@
 
 
 #pragma once
 #pragma once
 
 
+#include <Kernel/API/POSIX/sched.h>
 #include <sys/cdefs.h>
 #include <sys/cdefs.h>
 #include <sys/types.h>
 #include <sys/types.h>
 
 
@@ -13,10 +14,6 @@ __BEGIN_DECLS
 
 
 int sched_yield(void);
 int sched_yield(void);
 
 
-struct sched_param {
-    int sched_priority;
-};
-
 #define SCHED_FIFO 0
 #define SCHED_FIFO 0
 #define SCHED_RR 1
 #define SCHED_RR 1
 #define SCHED_OTHER 2
 #define SCHED_OTHER 2