Re: [PATCH 1/2] libbpf: Fix endianness macro usage for some compilers

2019-07-19 Thread Arnaldo Carvalho de Melo
Em Fri, Jul 19, 2019 at 09:25:07AM -0700, Y Song escreveu: > On Fri, Jul 19, 2019 at 7:35 AM Arnaldo Carvalho de Melo > wrote: > > Using endian.h and its endianness macros makes this code build in a > > wider range of compilers, as some don't have those macros > > (__BYTE_ORDER__, __ORDER_LITTLE_

Re: [PATCH 1/2] libbpf: Fix endianness macro usage for some compilers

2019-07-19 Thread Y Song
On Fri, Jul 19, 2019 at 7:35 AM Arnaldo Carvalho de Melo wrote: > > From: Arnaldo Carvalho de Melo > > Using endian.h and its endianness macros makes this code build in a > wider range of compilers, as some don't have those macros > (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__),

[PATCH 1/2] libbpf: Fix endianness macro usage for some compilers

2019-07-19 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Using endian.h and its endianness macros makes this code build in a wider range of compilers, as some don't have those macros (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__), so use instead endian.h's macros (__BYTE_ORDER, __LITTLE_ENDIAN, __BIG_ENDI