Bug#728146: pd-iemambi: FTBFS on kfreebsd-*: #error No byte order defined

Robert Millan rmh at debian.org
Fri Nov 1 21:03:17 UTC 2013


On 01/11/2013 21:09, IOhannes m zmölnig wrote:
> thanks for the confirmation.
> the code already includes <machine/endian.h> for BSD-like platforms
> (__FreeBSD__, __APPLE__ *and* __FreeBSD_kernel__) whereas <endian.h> is
> only included on linux and the hurd.
> so i wonder what's the difference between <endian.h> and
> <machine/endian.h>? can/should i use the latter on kfreebsd-*?

<machine/endian.h> is available on systems using kernel of FreeBSD.

<endian.h> is available on systems using Glibc.

As GNU/kFreeBSD is both things, you can have the one you prefer. Just
check for the component that provides it (i.e. __GLIBC__ or
__FreeBSD_kernel__) then include it.

-- 
Robert Millan



More information about the pkg-multimedia-maintainers mailing list