diff --git a/tools/include/linux/kernel.h b/tools/include/linux/kernel.h index 28607db02bd3ed165cd535de415ffd3d4476753f..adb4d0147755ea57830bd689b2f74f69f62110c5 100644 --- a/tools/include/linux/kernel.h +++ b/tools/include/linux/kernel.h @@ -5,6 +5,10 @@ #include #include +#ifndef UINT_MAX +#define UINT_MAX (~0U) +#endif + #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) #define PERF_ALIGN(x, a) __PERF_ALIGN_MASK(x, (typeof(x))(a)-1)