X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fsys%2Fsysmacros.h;h=a2e2eaa247c2cd12621b5766805ceb959020f8a6;hb=f0b85fd926c5a381416c94be62e7bc20d9fdbdb1;hp=79eba3bed7f7ca7572f8b57a45236b1c83034a1a;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl 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 +#define major(x) (((x) >> 8) & 0xff) +#define minor(x) ((x) & 0xff) +#define makedev(x,y) (((x)<<8)|((y)&0xff)) #endif