From 4a003de02eca49b043b3cd3f5f2f311f55cba40d Mon Sep 17 00:00:00 2001 From: Daniel Lenski Date: Fri, 4 Jan 2019 16:19:46 -0800 Subject: [PATCH] GP ESP: extra headers must be explicitly included for IP packet munging on *BSD Signed-off-by: Daniel Lenski --- gpst.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gpst.c b/gpst.c index a9ef565f..635ff1ee 100644 --- a/gpst.c +++ b/gpst.c @@ -34,14 +34,14 @@ #include #endif -#ifdef __FreeBSD__ -#include -#include -#endif - #ifdef _WIN32 #include "win32-ipicmp.h" #else +/* The BSDs require the first two headers before netinet/ip.h + * (Linux and macOS already #include them within netinet/ip.h) + */ +#include +#include #include #include #endif -- 2.50.1