aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'executor/common_linux.h')
-rw-r--r--executor/common_linux.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h
index e472e7644..5d31b973d 100644
--- a/executor/common_linux.h
+++ b/executor/common_linux.h
@@ -131,8 +131,6 @@ struct nlmsg {
char buf[4096];
};
-static struct nlmsg nlmsg;
-
static void netlink_init(struct nlmsg* nlmsg, int typ, int flags,
const void* data, int size)
{
@@ -440,6 +438,10 @@ static void netlink_add_neigh(struct nlmsg* nlmsg, int sock, const char* name,
#endif
#endif
+#if SYZ_EXECUTOR || SYZ_NET_DEVICES || SYZ_NET_INJECTION || SYZ_DEVLINK_PCI
+static struct nlmsg nlmsg;
+#endif
+
#if SYZ_EXECUTOR || SYZ_NET_INJECTION
#include <arpa/inet.h>
#include <errno.h>