Merge pull request #970 from jagerman/xenial-build-hack

Don't include net/if.h to help xenial
This commit is contained in:
Jeff 2019-12-14 13:01:25 -05:00 committed by GitHub
commit 77e85ec444
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,12 @@
#include <netinet/in.h> #include <netinet/in.h>
#endif #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> #include <net/if.h>
#endif
#if defined Linux #if defined Linux
#include <netinet/in.h> #include <netinet/in.h>