[PATCH] Include extra headers needed for ICMP packet-building on FreeBSD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Brennan Hildebrand <brennan at nthroot.org>

Signed-off-by: Daniel Lenski <dlenski at gmail.com>
---
 esp.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/esp.c b/esp.c
index ae60269..7876fd5 100644
--- a/esp.c
+++ b/esp.c
@@ -23,6 +23,10 @@
 #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>
 
-- 
2.7.4




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux