diff options
Diffstat (limited to 'tools/lib/bpf/hashmap.h')
-rw-r--r-- | tools/lib/bpf/hashmap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/lib/bpf/hashmap.h b/tools/lib/bpf/hashmap.h index 03748a742146..bae8879cdf58 100644 --- a/tools/lib/bpf/hashmap.h +++ b/tools/lib/bpf/hashmap.h | |||
@@ -10,6 +10,11 @@ | |||
10 | 10 | ||
11 | #include <stdbool.h> | 11 | #include <stdbool.h> |
12 | #include <stddef.h> | 12 | #include <stddef.h> |
13 | #ifdef __GLIBC__ | ||
14 | #include <bits/wordsize.h> | ||
15 | #else | ||
16 | #include <bits/reg.h> | ||
17 | #endif | ||
13 | #include "libbpf_internal.h" | 18 | #include "libbpf_internal.h" |
14 | 19 | ||
15 | static inline size_t hash_bits(size_t h, int bits) | 20 | static inline size_t hash_bits(size_t h, int bits) |