diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2017-02-22 17:42:40 -0300 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-03-03 19:07:14 -0300 |
| commit | eaa75b5117d52adf1efd3c6c3fb4bd8f97de648b (patch) | |
| tree | e9c08d521d784a8ca9d03a9fa105fc33731d3771 /tools/include/linux | |
| parent | ed4aad50ea0384737034b39f952f29cfb2da52ac (diff) | |
tools include: Add UINT_MAX def to kernel.h
The kernel has it and some files we got from there would require us
including the userland header for that, so add it conditionally.
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Elena Reshetova <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/include/linux')
| -rw-r--r-- | tools/include/linux/kernel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/include/linux/kernel.h b/tools/include/linux/kernel.h index 28607db02bd3..adb4d0147755 100644 --- a/tools/include/linux/kernel.h +++ b/tools/include/linux/kernel.h @@ -5,6 +5,10 @@ #include <stddef.h> #include <assert.h> +#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) |