]> granicus.if.org Git - strace/commit
rtnl_link: include "netlink.h" before <linux/rtnetlink.h>
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 9 Aug 2017 13:24:13 +0000 (13:24 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 9 Aug 2017 13:24:13 +0000 (13:24 +0000)
commitc81ad544aeaa3c1db8d9f177bf1e71c3eb51571f
tree659d26517cfe076a58daf5c90172699f1f1776fc
parentfc15305b9f94609f98da6965a3e7310a01a0f6c6
rtnl_link: include "netlink.h" before <linux/rtnetlink.h>

<sys/socket.h> has to be included before <linux/netlink.h> because
the latter used to be incomplete in older kernel headers.

As a local wrapper file called netlink.h was introduced earlier
to workaround this and related portability issues, include it before
<linux/rtnetlink.h> that in turn includes <linux/netlink.h>.

This fixes build on systems with older kernel headers.

* rtnl_link.c: Include "netlink.h" before <linux/rtnetlink.h>.
rtnl_link.c