diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-09-18 16:34:13 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-09-18 16:34:13 -0400 |
commit | b0c088ee550634e07a6289a8ac98cb8009f81c66 (patch) | |
tree | 8c3798915c087bfba3204477ac6c2addcf8955cb /include/sys/sysmacros.h | |
parent | ca8373dfcf03c808a32b3846f95d802fefc4c2e8 (diff) | |
download | musl-b0c088ee550634e07a6289a8ac98cb8009f81c66.tar.gz musl-b0c088ee550634e07a6289a8ac98cb8009f81c66.tar.bz2 musl-b0c088ee550634e07a6289a8ac98cb8009f81c66.tar.xz musl-b0c088ee550634e07a6289a8ac98cb8009f81c66.zip |
cleanup more bits cruft (sysmacros and socket)
Diffstat (limited to 'include/sys/sysmacros.h')
-rw-r--r-- | include/sys/sysmacros.h | 4 |
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 |