]) # LN_HAVE_IN_DEV_FOR_EACH_IFA_RTNL
#
-# LN_HAVE_ETHTOOL_H_INCLUDED
-#
-# kernel 5.11.0-36 removes including linux/ethtool.h from linux/netdevice.h
-#
-AC_DEFUN([LN_HAVE_ETHTOOL_H_INCLUDED], [
-tmp_flags="$EXTRA_KCFLAGS"
-EXTRA_KCFLAGS="-Werror"
-LB_CHECK_COMPILE([if ethtool.h is included in netdevice.h],
-ethtool_h, [
- #include <linux/netdevice.h>
-],[
- struct ethtool_ops ethtool_ops = {};
- (void)ethtool_ops;
-],[
- AC_DEFINE(HAVE_ETHTOOL_H_INCLUDED, 1,
- [ethtool.h is included in netdevice.h])
-])
-EXTRA_KCFLAGS="$tmp_flags"
-]) # LN_HAVE_ETHTOOL_H_INCLUDED
-
-#
# LN_IB_DEVICE_OPS_EXISTS
#
# kernel 5.0 commit 521ed0d92ab0db3edd17a5f4716b7f698f4fce61
LN_CONFIG_SOCK_GETNAME
# 5.3 and 4.18.0-193.el8
LN_HAVE_IN_DEV_FOR_EACH_IFA_RTNL
-# 5.11
-LN_HAVE_ETHTOOL_H_INCLUDED
]) # LN_PROG_LINUX
#
* Author: Eric Barton <eric@bartonsoftware.com>
*/
-#ifndef HAVE_ETHTOOL_H_INCLUDED
#include <linux/ethtool.h>
-#endif
#include <linux/inetdevice.h>
#include "socklnd.h"