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

Bug#715321: /usr/include/net/if_bridgevar.h: Missing #include <stdint.h>



2013/7/7 Laurent Bigonville <bigon@debian.org>:
> /usr/include/net/if_bridgevar.h is explicitly using types like
> "uint32_t"
>
> Shouldn't an include for <stdint.h> be added?

This is intentional upstream policy (to avoid header pollution).
Programs which include <net/if_bridevar.h> are expected to include
<stdint.h> first.

However, because <stdint.h> is not available to kernel code. A lot of
code from FreeBSD tends to use <sys/types.h> instead, even in cases
where it is only intended for userland.

So you probably just need to replace that <sys/types.h> in your code.


Reply to: