This fixes a compile issue introduced with linux kernel 4.15 include/linux/in.h:222:8: error: redefinition of 'struct in_pktinfo' | struct in_pktinfo { Upstream-Status: Pending Signed-off-by: Armin Kuster Index: openl2tp-1.8/plugins/ppp_unix.c =================================================================== --- openl2tp-1.8.orig/plugins/ppp_unix.c +++ openl2tp-1.8/plugins/ppp_unix.c @@ -25,9 +25,14 @@ #include #include #include +#include + +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0) #include #include #include +#endif + #include #include #include @@ -41,12 +46,12 @@ #define __user #endif #include -#include -#include #include #include +#include +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0) #include - +#endif #include "usl.h" #include "l2tp_private.h"