diff options
author | Andrii Nakryiko <[email protected]> | 2019-07-18 10:30:21 -0700 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-07-29 10:18:08 -0300 |
commit | 8aa259b10a6a759c50137bbbf225df0c17ca5d27 (patch) | |
tree | f51cf6680b72bfc55b91126ea05639aa854caad3 /lib/mpi/mpicoder.c | |
parent | 2e9a06dda10aea81a17c623f08534dac6735434a (diff) |
libbpf: fix missing __WORDSIZE definition
hashmap.h depends on __WORDSIZE being defined. It is defined by
glibc/musl in different headers. It's an explicit goal for musl to be
"non-detectable" at compilation time, so instead include glibc header if
glibc is explicitly detected and fall back to musl header otherwise.
Reported-by: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: Andrii Nakryiko <[email protected]>
Cc: Daniel Borkmann <[email protected]>
Fixes: e3b924224028 ("libbpf: add resizable non-thread safe internal hashmap")
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions