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


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to