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.
pull/970/head
Jason Rhinelander 5 years ago
parent 093880696d
commit 2e17542028

@ -36,7 +36,12 @@
#include <netinet/in.h>
#endif
#if defined(Linux)
// Once we drop xenial support we can just include net/if.h on linux
#include <linux/if.h>
#else
#include <net/if.h>
#endif
#if defined Linux
#include <netinet/in.h>

Loading…
Cancel
Save