summaryrefslogblamecommitdiff
path: root/portability/sys/sysmacros.h
blob: 863972e03c8cb4a6fdef63f40efa26ccc3e5aceb (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                   
#ifdef __linux__
# include_next <sys/sysmacros.h>
#else
# include <stdint.h>
# include <sys/types.h>
# define major(x)        ((int32_t)(((u_int32_t)(x) >> 24) & 0xff))
# define minor(x)        ((int32_t)((x) & 0xffffff))
# define makedev(x, y)    ((dev_t)(((x) << 24) | (y)))
#endif