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>.
This commit is contained in:
Дмитрий Левин 2017-08-09 13:24:13 +00:00
parent fc15305b9f
commit c81ad544ae

View File

@ -31,6 +31,7 @@
#include "netlink_route.h"
#include "print_fields.h"
#include "netlink.h"
#include <linux/rtnetlink.h>
DECL_NETLINK_ROUTE_DECODER(decode_ifinfomsg)