From e3044aca1c21335d3d35d8e2d5cfa830efb04541 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 16 Feb 2024 10:32:37 +0100 Subject: [PATCH] dnsdist: Move `linux/*.h` headers to xsk.cc to fix warnings --- pdns/xsk.cc | 3 +++ pdns/xsk.hh | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pdns/xsk.cc b/pdns/xsk.cc index d0cb88513a..72f4791dd8 100644 --- a/pdns/xsk.cc +++ b/pdns/xsk.cc @@ -30,11 +30,14 @@ #include #include #include +#include #include #include #include #include #include +#include +#include #include #include #include diff --git a/pdns/xsk.hh b/pdns/xsk.hh index e181e63823..8d2b57d2d9 100644 --- a/pdns/xsk.hh +++ b/pdns/xsk.hh @@ -39,9 +39,6 @@ #include #include #include -#include -#include -#include #include @@ -185,8 +182,10 @@ public: } }; +struct ethhdr; struct iphdr; struct ipv6hdr; +struct udphdr; class XskPacket { -- 2.47.2