Pārlūkot izejas kodu

Add missing sys/types.h header

Eric Andersen 19 gadi atpakaļ
vecāks
revīzija
c36fe58f44

+ 2 - 1
libc/sysdeps/linux/common/llseek.c

@@ -7,8 +7,9 @@
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  */
 
-#include <sys/syscall.h>
 #include <unistd.h>
+#include <sys/types.h>
+#include <sys/syscall.h>
 
 extern __typeof(lseek64) __libc_lseek64;
 

+ 2 - 1
libc/sysdeps/linux/common/sched_getparam.c

@@ -7,8 +7,9 @@
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  */
 
-#include <sys/syscall.h>
 #include <sched.h>
+#include <sys/types.h>
+#include <sys/syscall.h>
 
 #define __NR___syscall_sched_getparam __NR_sched_getparam
 static inline _syscall2(int, __syscall_sched_getparam,

+ 2 - 1
libc/sysdeps/linux/common/sched_getscheduler.c

@@ -7,8 +7,9 @@
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  */
 
-#include <sys/syscall.h>
 #include <sched.h>
+#include <sys/types.h>
+#include <sys/syscall.h>
 
 #define __NR___syscall_sched_getscheduler __NR_sched_getscheduler
 static inline _syscall1(int, __syscall_sched_getscheduler, __kernel_pid_t, pid);

+ 2 - 1
libc/sysdeps/linux/common/sched_rr_get_interval.c

@@ -7,8 +7,9 @@
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  */
 
-#include <sys/syscall.h>
 #include <sched.h>
+#include <sys/types.h>
+#include <sys/syscall.h>
 
 #define __NR___syscall_sched_rr_get_interval __NR_sched_rr_get_interval
 static inline _syscall2(int, __syscall_sched_rr_get_interval,

+ 2 - 1
libc/sysdeps/linux/common/sched_setparam.c

@@ -7,8 +7,9 @@
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  */
 
-#include <sys/syscall.h>
 #include <sched.h>
+#include <sys/types.h>
+#include <sys/syscall.h>
 
 #define __NR___syscall_sched_setparam __NR_sched_setparam
 static inline _syscall2(int, __syscall_sched_setparam,

+ 2 - 1
libc/sysdeps/linux/common/sched_setscheduler.c

@@ -7,8 +7,9 @@
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  */
 
-#include <sys/syscall.h>
 #include <sched.h>
+#include <sys/types.h>
+#include <sys/syscall.h>
 
 #define __NR___syscall_sched_setscheduler __NR_sched_setscheduler
 static inline _syscall3(int, __syscall_sched_setscheduler,