]> granicus.if.org Git - strace/commitdiff
configure.ac: check for linux/rtnetlink.h instead of linux/if_link.h for declarations
authorEugene Syromyatnikov <evgsyr@gmail.com>
Fri, 1 Jun 2018 10:13:52 +0000 (12:13 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 1 Jun 2018 13:37:12 +0000 (13:37 +0000)
Historically, type definitions and declarations related to netlink route
interface attributes were in linux/rtnetlink.h, later they were moved
elsewhere (first linux/if.h, then linux/if_link.h) with the inclusion
of the corresponding header file in linux/rtnetlink.h.

* configure.ac: Use <linux/rtnetlink.h> instead of <linux/if_link.h>
in checks for interface netlink attributes-related declarations
and definitions.

configure.ac

index 9f13fc7933c98df55333df2dc63c030f792b03a6..46c54d525efb85df5d3f0315a58deda73d8c6f6b 100644 (file)
@@ -504,11 +504,11 @@ AC_CHECK_TYPES(m4_normalize([
        struct ifla_bridge_id,
        struct ifla_port_vsi,
        struct rtnl_link_stats64
-]),,, [#include <linux/if_link.h>])
+]),,, [#include <linux/rtnetlink.h>])
 AC_CHECK_MEMBERS(m4_normalize([
        struct rtnl_link_stats.rx_nohandler,
        struct rtnl_link_stats64.rx_nohandler
-]),,, [#include <linux/if_link.h>])
+]),,, [#include <linux/rtnetlink.h>])
 
 AC_CHECK_TYPES(m4_normalize([
        struct gnet_stats_basic,