]> granicus.if.org Git - strace/commitdiff
configure.ac: include <sys/socket.h> before <linux/rtnetlink.h>
authorEugene Syromyatnikov <evgsyr@gmail.com>
Fri, 1 Jun 2018 13:29:25 +0000 (15:29 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 1 Jun 2018 13:37:12 +0000 (13:37 +0000)
This is needed for old Linux UAPI headers that do no contain commit
v3.1-rc2~19^2~29.

* configure.ac: Include <sys/socket.h> before <linux/rtnetlink.h>
in AC_CHECK_* invocations.

configure.ac

index 46c54d525efb85df5d3f0315a58deda73d8c6f6b..43197687aee152709145cc5d758691ff56254049 100644 (file)
@@ -492,7 +492,8 @@ AC_CHECK_TYPES([struct netconfmsg],,, [#include <linux/netconf.h>])
 AC_CHECK_TYPES(m4_normalize([
        struct rta_mfc_stats,
        struct rtvia
-]),,, [#include <linux/rtnetlink.h>])
+]),,, [#include <sys/socket.h>
+#include <linux/rtnetlink.h>])
 
 AC_CHECK_MEMBERS([struct ndt_stats.ndts_table_fulls],,, [#include <linux/neighbour.h>])
 AC_CHECK_TYPES(m4_normalize([
@@ -504,11 +505,13 @@ AC_CHECK_TYPES(m4_normalize([
        struct ifla_bridge_id,
        struct ifla_port_vsi,
        struct rtnl_link_stats64
-]),,, [#include <linux/rtnetlink.h>])
+]),,, [#include <sys/socket.h>
+#include <linux/rtnetlink.h>])
 AC_CHECK_MEMBERS(m4_normalize([
        struct rtnl_link_stats.rx_nohandler,
        struct rtnl_link_stats64.rx_nohandler
-]),,, [#include <linux/rtnetlink.h>])
+]),,, [#include <sys/socket.h>
+#include <linux/rtnetlink.h>])
 
 AC_CHECK_TYPES(m4_normalize([
        struct gnet_stats_basic,