浏览代码

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

Eric Andersen 22 年之前
父节点
当前提交
6a108999f8
共有 2 个文件被更改,包括 2 次插入0 次删除
  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 "syscalls.h"
 #include <sys/stat.h>
 #include <sys/stat.h>
+#include <sys/sysmacros.h>
 
 
 #define __NR___syscall_mknod __NR_mknod
 #define __NR___syscall_mknod __NR_mknod
 static inline _syscall3(int, __syscall_mknod, const char *, path,
 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 "syscalls.h"
 #include <sys/ustat.h>
 #include <sys/ustat.h>
+#include <sys/sysmacros.h>
 
 
 #define __NR___syscall_ustat __NR_ustat
 #define __NR___syscall_ustat __NR_ustat
 static inline _syscall2(int, __syscall_ustat,
 static inline _syscall2(int, __syscall_ustat,