]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Include extra headers needed for ICMP packet-building on FreeBSD
authorBrennan Hildebrand <brennan@nthroot.org>
Thu, 17 Aug 2017 18:27:40 +0000 (11:27 -0700)
committerDavid Woodhouse <dwmw2@infradead.org>
Thu, 17 Aug 2017 18:36:43 +0000 (19:36 +0100)
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
esp.c

diff --git a/esp.c b/esp.c
index ae60269ea87f7a9517b06a06cdd38468f1767d1d..7876fd51d20e7f6e8af0be2b4cc32825d6180528 100644 (file)
--- a/esp.c
+++ b/esp.c
 #include <string.h>
 #include <stdlib.h>
 #include <errno.h>
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#include <netinet/in.h>
+#endif
 #include <netinet/ip.h>
 #include <netinet/ip_icmp.h>