| 1 | diff -uNr htop-2.1.0/linux/LinuxProcessList.c htop-2.1.0.mod/linux/LinuxProcessList.c |
| 2 | --- htop-2.1.0/linux/LinuxProcessList.c 2018-02-04 20:57:13.000000000 +0200 |
| 3 | +++ htop-2.1.0.mod/linux/LinuxProcessList.c 2018-03-05 17:57:46.901891199 +0200 |
| 4 | @@ -37,6 +37,14 @@ |
| 5 | #include <linux/taskstats.h> |
| 6 | #endif |
| 7 | |
| 8 | +#ifndef major |
| 9 | +#define major(rdev) ((rdev)>>8) |
| 10 | +#endif |
| 11 | + |
| 12 | +#ifndef minor |
| 13 | +#define minor(rdev) ((rdev) & 0xff) |
| 14 | +#endif |
| 15 | + |
| 16 | /*{ |
| 17 | |
| 18 | #include "ProcessList.h" |
| 19 | diff -uNr htop-2.1.0/Process.c htop-2.1.0.mod/Process.c |
| 20 | --- htop-2.1.0/Process.c 2018-02-04 20:57:13.000000000 +0200 |
| 21 | +++ htop-2.1.0.mod/Process.c 2018-03-05 17:59:16.522983619 +0200 |
| 22 | @@ -29,6 +29,14 @@ |
| 23 | #include <assert.h> |
| 24 | #include <math.h> |
| 25 | |
| 26 | +#ifndef major |
| 27 | +#define major(rdev) ((rdev)>>8) |
| 28 | +#endif |
| 29 | + |
| 30 | +#ifndef minor |
| 31 | +#define minor(rdev) ((rdev) & 0xff) |
| 32 | +#endif |
| 33 | + |
| 34 | #ifdef __ANDROID__ |
| 35 | #define SYS_ioprio_get __NR_ioprio_get |
| 36 | #define SYS_ioprio_set __NR_ioprio_set |