summaryrefslogtreecommitdiff
path: root/include/sys/sysmacros.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-09-18 16:34:13 -0400
committerRich Felker <dalias@aerifal.cx>2011-09-18 16:34:13 -0400
commitb0c088ee550634e07a6289a8ac98cb8009f81c66 (patch)
tree8c3798915c087bfba3204477ac6c2addcf8955cb /include/sys/sysmacros.h
parentca8373dfcf03c808a32b3846f95d802fefc4c2e8 (diff)
downloadmusl-b0c088ee550634e07a6289a8ac98cb8009f81c66.tar.gz
cleanup more bits cruft (sysmacros and socket)
Diffstat (limited to 'include/sys/sysmacros.h')
-rw-r--r--include/sys/sysmacros.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/sys/sysmacros.h b/include/sys/sysmacros.h
index 79eba3be..a2e2eaa2 100644
--- a/include/sys/sysmacros.h
+++ b/include/sys/sysmacros.h
@@ -1,6 +1,8 @@
#ifndef _SYSMACROS_H
#define _SYSMACROS_H
-#include <bits/sysmacros.h>
+#define major(x) (((x) >> 8) & 0xff)
+#define minor(x) ((x) & 0xff)
+#define makedev(x,y) (((x)<<8)|((y)&0xff))
#endif