[PATCH 01/27] configure.ac: remove redundant check header of linux/dcbnl.h
JingPiao Chen
chenjingpiao at gmail.com
Tue Aug 15 04:41:09 UTC 2017
* configure.ac (AC_CHECK_HEADERS): Remove linux/dcbnl.h.
* rtnl_dcb.c: Replace HAVE_LINUX_DCBNL_H with HAVE_STRUCT_DCBMSG.
* tests/netlink_route.c: Likewise.
---
configure.ac | 1 -
rtnl_dcb.c | 2 +-
tests/netlink_route.c | 2 +-
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index f02b71a..cb398fb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -374,7 +374,6 @@ AC_CHECK_HEADERS(m4_normalize([
inttypes.h
linux/bsg.h
linux/cryptouser.h
- linux/dcbnl.h
linux/dm-ioctl.h
linux/dqblk_xfs.h
linux/falloc.h
diff --git a/rtnl_dcb.c b/rtnl_dcb.c
index 0c9719b..7c1c57e 100644
--- a/rtnl_dcb.c
+++ b/rtnl_dcb.c
@@ -29,7 +29,7 @@
#include "defs.h"
-#ifdef HAVE_LINUX_DCBNL_H
+#ifdef HAVE_STRUCT_DCBMSG
# include "netlink_route.h"
# include "print_fields.h"
diff --git a/tests/netlink_route.c b/tests/netlink_route.c
index 5b60a17..68d0fc7 100644
--- a/tests/netlink_route.c
+++ b/tests/netlink_route.c
@@ -33,7 +33,7 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include "test_netlink.h"
-#ifdef HAVE_LINUX_DCBNL_H
+#ifdef HAVE_STRUCT_DCBMSG
# include <linux/dcbnl.h>
#endif
#ifdef HAVE_LINUX_FIB_RULES_H
--
2.7.4
More information about the Strace-devel
mailing list