Re: [PATCH v2 bpf] libbpf: fix missing __WORDSIZE definition

2019-07-26 Thread Arnaldo Carvalho de Melo
On July 26, 2019 8:01:10 PM GMT-03:00, Andrii Nakryiko wrote: >On Fri, Jul 26, 2019 at 1:49 PM Arnaldo Carvalho de Melo > wrote: >> >> Em Thu, Jul 18, 2019 at 10:30:21AM -0700, Andrii Nakryiko escreveu: >> > hashmap.h depends on __WORDSIZE being defined. It is defined by >> > glibc/musl in differ

Re: [PATCH v2 bpf] libbpf: fix missing __WORDSIZE definition

2019-07-26 Thread Andrii Nakryiko
On Fri, Jul 26, 2019 at 1:49 PM Arnaldo Carvalho de Melo wrote: > > Em Thu, Jul 18, 2019 at 10:30:21AM -0700, Andrii Nakryiko escreveu: > > 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"

Re: [PATCH v2 bpf] libbpf: fix missing __WORDSIZE definition

2019-07-26 Thread Arnaldo Carvalho de Melo
Em Thu, Jul 18, 2019 at 10:30:21AM -0700, Andrii Nakryiko escreveu: > 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 explici

Re: [PATCH v2 bpf] libbpf: fix missing __WORDSIZE definition

2019-07-18 Thread Andrii Nakryiko
On Thu, Jul 18, 2019 at 10:30 AM Andrii Nakryiko wrote: > > 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 detec

[PATCH v2 bpf] libbpf: fix missing __WORDSIZE definition

2019-07-18 Thread Andrii Nakryiko
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. Fixes: e3b924224028 ("