From 2e175420280b40b5e380f2828b74008e5e9d0c94 Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Sat, 14 Dec 2019 11:56:02 -0400 Subject: [PATCH] Don't include net/if.h to help xenial Loading both net/if.h and linux/if.h on xenial breaks compilation because xenial's kernel/glibc headers are broken AF. We don't actually need anything from net/if.h here, so don't include it. --- include/tuntap.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/tuntap.h b/include/tuntap.h index 5dff08807..6b37e7bab 100644 --- a/include/tuntap.h +++ b/include/tuntap.h @@ -36,7 +36,12 @@ #include #endif +#if defined(Linux) +// Once we drop xenial support we can just include net/if.h on linux +#include +#else #include +#endif #if defined Linux #include