On Fri, Jun 16, 2017 at 09:02:16AM +0200, Richard Cochran wrote:
> On Thu, Jun 15, 2017 at 10:16:43AM -0600, Brian Olson wrote:
> > In file included from rtnl.c:21:
> > /usr/include/linux/netlink.h:35: error: expected specifier-qualifier-list 
> > before ‘sa_family_t’
> > rtnl.c: In function ‘rtnl_link_query’:
> > rtnl.c:59: error: ‘struct sockaddr_nl’ has no member named ‘nl_family’
> > rtnl.c: In function ‘rtnl_open’:
> > rtnl.c:154: error: ‘struct sockaddr_nl’ has no member named ‘nl_family’
> > rtnl.c:155: error: ‘struct sockaddr_nl’ has no member named ‘nl_groups’
> > make: *** [rtnl.o] Error 1
> 
> I don't get this.  We already include <sys/socket.h>

> It appears that your C library headers are broken.  How can this be?
> Aren't you using RH enterprise?
> 
> In non-broken C libraries and C language programming in general, the
> order of include directives is freely changeable.

FWIW, this kernel commit has some context:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6602a4baf4d1a73cc4685a39ef859e1c5ddf654c

-- 
Miroslav Lichvar

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to