diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2018-09-24 19:56:08 +0200 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2018-11-24 01:22:13 +0000 |
commit | b4b01268bba4db638c89d30e68a467e7e49a65ce (patch) | |
tree | c16c81aef6a32bebcee4f7acf6ed1fa4e49112c7 /tests/netlink_generic.c | |
parent | 341eb0859dd6b5802d37e5cb194ffb3de580ca22 (diff) | |
download | strace-b4b01268bba4db638c89d30e68a467e7e49a65ce.tar.gz |
Remove HAVE_LINUX_GENETLINK_H ifdefs
<linux/netlink.h> 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.
Diffstat (limited to 'tests/netlink_generic.c')
-rw-r--r-- | tests/netlink_generic.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/tests/netlink_generic.c b/tests/netlink_generic.c index cd9fbeade..d83e7e31a 100644 --- a/tests/netlink_generic.c +++ b/tests/netlink_generic.c @@ -28,14 +28,12 @@ #include "tests.h" -#ifdef HAVE_LINUX_GENETLINK_H - -# include <stdio.h> -# include <string.h> -# include <unistd.h> -# include <sys/socket.h> -# include "netlink.h" -# include <linux/genetlink.h> +#include <stdio.h> +#include <string.h> +#include <unistd.h> +#include <sys/socket.h> +#include "netlink.h" +#include <linux/genetlink.h> 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 |