Browse Source

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

Eric Andersen 21 years ago
parent
commit
6a108999f8
2 changed files with 2 additions and 0 deletions
  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,