diff options
Diffstat (limited to 'tools/perf/util/branch.h')
-rw-r--r-- | tools/perf/util/branch.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/perf/util/branch.h b/tools/perf/util/branch.h index 06f66dad0b79..88e00d268f6f 100644 --- a/tools/perf/util/branch.h +++ b/tools/perf/util/branch.h | |||
@@ -1,8 +1,15 @@ | |||
1 | #ifndef _PERF_BRANCH_H | 1 | #ifndef _PERF_BRANCH_H |
2 | #define _PERF_BRANCH_H 1 | 2 | #define _PERF_BRANCH_H 1 |
3 | 3 | /* | |
4 | * The linux/stddef.h isn't need here, but is needed for __always_inline used | ||
5 | * in files included from uapi/linux/perf_event.h such as | ||
6 | * /usr/include/linux/swab.h and /usr/include/linux/byteorder/little_endian.h, | ||
7 | * detected in at least musl libc, used in Alpine Linux. -acme | ||
8 | */ | ||
4 | #include <stdio.h> | 9 | #include <stdio.h> |
5 | #include <stdint.h> | 10 | #include <stdint.h> |
11 | #include <linux/compiler.h> | ||
12 | #include <linux/stddef.h> | ||
6 | #include <linux/perf_event.h> | 13 | #include <linux/perf_event.h> |
7 | #include <linux/types.h> | 14 | #include <linux/types.h> |
8 | 15 | ||