On 2013-11-01 15:59, Robert Millan wrote: > On 01/11/2013 15:21, Sebastian Ramacher wrote: >>> anyhow, i'd rather have the problem fixed. so what is the portable >>> solution? should i simply define `__BSD_VISIBLE` for kfreebsd-*? > > No, that's an internal macro. Applications are not supposed to provide it.
thanks. > > As far as I can see, starting with kfreebsd-kernel-headers 9.2~3 the > macros you want are defined unconditionally (by way of #include > <endian.h>). 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-*? > Maybe you just need a versioned B-D? that would be the easiest solution :-) gfmards IOhannes
signature.asc
Description: OpenPGP digital signature