Jelajahi Sumber

Be certain to include sys/sysmacros.h when major() and minor()
are being used

Eric Andersen 21 tahun lalu
induk
melakukan
6a108999f8
2 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 1 0
      libc/sysdeps/linux/common/mknod.c
  2. 1 0
      libc/sysdeps/linux/common/ustat.c

+ 1 - 0
libc/sysdeps/linux/common/mknod.c

@@ -9,6 +9,7 @@
 
 #include "syscalls.h"
 #include <sys/stat.h>
+#include <sys/sysmacros.h>
 
 #define __NR___syscall_mknod __NR_mknod
 static inline _syscall3(int, __syscall_mknod, const char *, path,

+ 1 - 0
libc/sysdeps/linux/common/ustat.c

@@ -9,6 +9,7 @@
 
 #include "syscalls.h"
 #include <sys/ustat.h>
+#include <sys/sysmacros.h>
 
 #define __NR___syscall_ustat __NR_ustat
 static inline _syscall2(int, __syscall_ustat,