[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: uint8_t not exportet by sys/types.h



Christoph Egger wrote:
> As Ian reported in the context of #766913, freebsd documentation[0]
> suggests using sys/types.h to get uint8_t and friends. However your
> advice for sys/param.h seems to be necessary on kFreeBSD. Is that on
>  purpose?

Oh.  I was thinking of sys/types.h, but indeed, won't work on
GNU/kFreeBSD because the GNU libc version doesn't provide uint8_t etc.
We have the original FreeBSD header at sys/kglue/sys/types.h

FreeBSD kernel code often uses sys/param.h, which happened to work when
I tried it here, by accident because I think because it brings in
stdint.h

stdint.h was probably the best / most portable thing to use here, but
haven't tried it.

Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org


Reply to: