From 35e3f847cfd8b50b97ed3172577d884b0869b18e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 29 Dec 2018 22:04:16 +0100 Subject: executor: fix linux includes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Builds in one distro, but another says: In file included from :39:0: /usr/powerpc64le-linux-gnu/include/linux/if.h:143:8: error: redefinition of ‘struct ifmap’ /usr/powerpc64le-linux-gnu/include/net/if.h:111:8: note: originally defined here Mess. Try to fix it. Not sure what's the right solution and it it even exists. --- executor/common_linux.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'executor/common_linux.h') diff --git a/executor/common_linux.h b/executor/common_linux.h index d49e99364..608dc964c 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -112,7 +112,6 @@ static bool write_file(const char* file, const char* what, ...) #include #include -#include #include #include #include @@ -313,13 +312,13 @@ static void netlink_add_neigh(int sock, const char* name, #include #include #include +#include #include #include #include #include #include -#include #include #include #include @@ -425,11 +424,7 @@ static void initialize_tun(void) #include #include #include -#include -#include -#include -#include -#include +#include #include #include #include @@ -437,6 +432,11 @@ static void initialize_tun(void) #include #include +#include +#include +#include +#include + // Addresses are chosen to be in the same subnet as tun addresses. #define DEV_IPV4 "172.20.20.%d" #define DEV_IPV6 "fe80::%02hx" @@ -1208,12 +1208,13 @@ static long syz_kvm_setup_cpu(long a0, long a1, long a2, long a3, long a4, long #if SYZ_EXECUTOR || SYZ_RESET_NET_NAMESPACE #include -#include -#include +#include #include #include #include +#include + // checkpoint/reset_net_namespace partially resets net namespace to initial state // after each test. Currently it resets only ipv4 netfilter state. // Ideally, we just create a new net namespace for each test, -- cgit mrf-deployment