diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/sys/sysmacros.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/sys/sysmacros.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/sys/sysmacros.h b/sysdeps/unix/sysv/linux/sys/sysmacros.h index b859dc7d64..85b1b85d2e 100644 --- a/sysdeps/unix/sysv/linux/sys/sysmacros.h +++ b/sysdeps/unix/sysv/linux/sys/sysmacros.h @@ -22,8 +22,8 @@ #define _SYS_SYSMACROS_H 1 /* For compatibility we provide alternative names. */ -#define major(dev) ((dev) >> 32) -#define minor(dev) ((dev) & 0xffffffff) -#define makedev(major, minor) (((major) << 32) | (monor)) +#define major(dev) (((dev) >> 8) & 0xff) +#define minor(dev) ((dev) & 0xff) +#define makedev(major, minor) (((major) << 8) | (minor)) #endif /* _SYS_SYSMACROS_H */ |