--- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -59,8 +59,10 @@ #include #ifdef CONFIG_PCI +#if LINUX_VERSION_CODE < KERNEL_VERSION(5,4,0) #include #endif +#endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) #define HAVE_NET_DEVICE_OPS