From 09171eef574503a82342a8b23d4a55b8a5286724 Mon Sep 17 00:00:00 2001
From: W_Y_CPP <383152993@qq.com>
Date: Sat, 1 Jan 2022 13:05:37 +0900
Subject: [PATCH] fix pdnsd alt build error with kernel_5.15

---
 src/conff.h  | 2 +-
 src/dns.h    | 2 +-
 src/netdev.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/conff.h b/src/conff.h
index a07b1561b..c66d210aa 100644
--- a/src/conff.h
+++ b/src/conff.h
@@ -32,7 +32,7 @@
 #include <stdio.h>
 #include <pthread.h>
 #include <sys/socket.h>
-#include <net/if.h>
+#include <linux/if.h>
 #include "ipvers.h"
 #include "list.h"
 
diff --git a/src/dns.h b/src/dns.h
index 0f6a4ac1e..ecc9680b2 100644
--- a/src/dns.h
+++ b/src/dns.h
@@ -27,7 +27,7 @@
 #include <config.h>
 #include <arpa/inet.h>
 #include <sys/socket.h>
-#include <net/if.h>
+#include <linux/if.h>
 #include <sys/types.h>
 #include <inttypes.h>
 #include "rr_types.h"
diff --git a/src/netdev.c b/src/netdev.c
index bd5f8c451..bfd5046df 100644
--- a/src/netdev.c
+++ b/src/netdev.c
@@ -59,7 +59,7 @@
 #include "ipvers.h"
 #include <sys/stat.h>
 #include <sys/ioctl.h>
-#include <net/if.h>
+#include <linux/if.h>
 #include <netdb.h>
 #include <string.h>
 #include <unistd.h>
-- 
2.17.1
