summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/mknod.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-07-27 23:14:44 +0000
committerEric Andersen <andersen@codepoet.org>2004-07-27 23:14:44 +0000
commit6a108999f81ae9baf8b39b8acc47b7b4c6c048a0 (patch)
tree9a544c618e87d64a6e35d8cea48ef51c8c09400d /libc/sysdeps/linux/common/mknod.c
parent4b27b8d0bef7adcbfa993ff8b985a91d423f78c4 (diff)
Be certain to include sys/sysmacros.h when major() and minor()
are being used
Diffstat (limited to 'libc/sysdeps/linux/common/mknod.c')
-rw-r--r--libc/sysdeps/linux/common/mknod.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/mknod.c b/libc/sysdeps/linux/common/mknod.c
index 58cce2047..204a43475 100644
--- a/libc/sysdeps/linux/common/mknod.c
+++ b/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,