X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fsys%2Fsysmacros.h;h=2285271fbbbe8d95903cc62318fe95505c76c01a;hp=79eba3bed7f7ca7572f8b57a45236b1c83034a1a;hb=48854dffdb66191e7e54c0ea94bd1bd330905d7d;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 diff --git a/include/sys/sysmacros.h b/include/sys/sysmacros.h index 79eba3be..2285271f 100644 --- a/include/sys/sysmacros.h +++ b/include/sys/sysmacros.h @@ -1,6 +1,8 @@ -#ifndef _SYSMACROS_H -#define _SYSMACROS_H +#ifndef _SYS_SYSMACROS_H +#define _SYS_SYSMACROS_H -#include +#define major(x) ((unsigned)((x) >> 8) & 0xff) +#define minor(x) ((unsigned)(x) & 0xff) +#define makedev(x,y) (((x)<<8)|((y)&0xff)) #endif