diff --git a/package/lean/pdnsd-alt/patches/002-fix-pdnsd-alt-build-error-within-kernel_5.15.patch b/package/lean/pdnsd-alt/patches/002-fix-pdnsd-alt-build-error-within-kernel_5.15.patch new file mode 100644 index 000000000..601823e83 --- /dev/null +++ b/package/lean/pdnsd-alt/patches/002-fix-pdnsd-alt-build-error-within-kernel_5.15.patch @@ -0,0 +1,39 @@ +From 59859acf9083010639eb9bc0bf8cb5d03f03935f Mon Sep 17 00:00:00 2001 +From: SiYao Mo +Date: Fri, 16 Jul 2021 14:25:44 +0800 +Subject: [PATCH] pdnsd-alt: fix cmake error in kernel 5.15 Because of + redefinition of 'struct ifmap' & 'struct ifreq' & 'struct ifconf' in + linux/if.h (Linux Kernel above 5.13) Replace net/if.h with linux/if.h + +Signed-off-by: SiYao Mo +--- + src/conff.h | 2 +- + src/dns.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/conff.h b/src/conff.h +index a07b156..c66d210 100644 +--- a/src/conff.h ++++ b/src/conff.h +@@ -32,7 +32,7 @@ + #include + #include + #include +-#include ++#include + #include "ipvers.h" + #include "list.h" + +diff --git a/src/dns.h b/src/dns.h +index 0f6a4ac..ecc9680 100644 +--- a/src/dns.h ++++ b/src/dns.h +@@ -27,7 +27,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include "rr_types.h"