From: Eugene Syromyatnikov Date: Mon, 24 Sep 2018 17:56:08 +0000 (+0200) Subject: Remove HAVE_LINUX_GENETLINK_H ifdefs X-Git-Tag: v4.26~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b4b01268bba4db638c89d30e68a467e7e49a65ce;p=strace Remove HAVE_LINUX_GENETLINK_H ifdefs is available since Linux 2.6.15 (commit v2.6.15-rc1~53^2). * configure.ac (AC_CHECK_HEADERS): Remove linux/genetlink.h. * socketutils.c [!HAVE_LINUX_GENETLINK_H]: Remove. * tests/netlink_generic.c [!HAVE_LINUX_GENETLINK_H]: Likewise. --- diff --git a/configure.ac b/configure.ac index c982ced1..f31c3581 100644 --- a/configure.ac +++ b/configure.ac @@ -397,7 +397,6 @@ AC_CHECK_HEADERS(m4_normalize([ linux/falloc.h linux/fib_rules.h linux/fiemap.h - linux/genetlink.h linux/hiddev.h linux/if_addr.h linux/if_link.h diff --git a/socketutils.c b/socketutils.c index c3f28a1b..23192841 100644 --- a/socketutils.c +++ b/socketutils.c @@ -37,9 +37,7 @@ #include #include #include -#if HAVE_LINUX_GENETLINK_H #include -#endif #include #ifndef UNIX_PATH_MAX @@ -593,7 +591,6 @@ print_sockaddr_by_inode(struct tcb *const tcp, const int fd, getfdproto(tcp, fd)); } -#ifdef HAVE_LINUX_GENETLINK_H /* * Managing the cache for decoding communications of Netlink GENERIC protocol * @@ -690,12 +687,3 @@ genl_families_xlat(struct tcb *tcp) out: return dyxlat_get(dyxlat); } - -#else /* !HAVE_LINUX_GENETLINK_H */ - -const struct xlat * -genl_families_xlat(struct tcb *tcp) -{ - return NULL; -} -#endif diff --git a/tests/netlink_generic.c b/tests/netlink_generic.c index cd9fbead..d83e7e31 100644 --- a/tests/netlink_generic.c +++ b/tests/netlink_generic.c @@ -28,14 +28,12 @@ #include "tests.h" -#ifdef HAVE_LINUX_GENETLINK_H - -# include -# include -# include -# include -# include "netlink.h" -# include +#include +#include +#include +#include +#include "netlink.h" +#include static void test_nlmsg_type(const int fd) @@ -81,9 +79,3 @@ int main(void) return 0; } - -#else - -SKIP_MAIN_UNDEFINED("HAVE_LINUX_GENETLINK_H") - -#endif