Very COOL...!!

On Wed, Jan 14, 2009 at 1:46 AM, Sven Eckelmann <sven.eckelmann@gmx.de> wrote:
FreeBSD doesn't include as much deep includes in their socket headers
as the linux ones does. To support building on freebsd we must include
them explicit.

Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
CC: Antoine van Gelder <antoine@7degrees.co.za>
---
 vis-advanced/vis.c |    2 +-
 vis-advanced/vis.h |    2 ++
 vis/vis.c          |    2 +-
 vis/vis.h          |    2 ++
 4 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/vis-advanced/vis.c b/vis-advanced/vis.c
index 721d690..69f69b8 100644
--- a/vis-advanced/vis.c
+++ b/vis-advanced/vis.c
@@ -23,10 +23,10 @@


 #include <fcntl.h>
+#include <sys/socket.h>
 #include <net/if.h>
 #include <sys/ioctl.h>
 #include <sys/select.h>
-#include <sys/time.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <stdio.h>
diff --git a/vis-advanced/vis.h b/vis-advanced/vis.h
index 6f6793e..a060c83 100644
--- a/vis-advanced/vis.h
+++ b/vis-advanced/vis.h
@@ -25,6 +25,8 @@
 #include <pthread.h>
 #include <sys/socket.h>
 #include <sys/types.h>
+#include <sys/time.h>
+#include <netinet/in.h>
 #include <arpa/inet.h>
 #include <errno.h>

diff --git a/vis/vis.c b/vis/vis.c
index 05f4096..c488365 100644
--- a/vis/vis.c
+++ b/vis/vis.c
@@ -23,10 +23,10 @@


 #include <fcntl.h>
+#include <sys/socket.h>
 #include <net/if.h>
 #include <sys/ioctl.h>
 #include <sys/select.h>
-#include <sys/time.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <stdio.h>
diff --git a/vis/vis.h b/vis/vis.h
index 8953b70..1f343d8 100644
--- a/vis/vis.h
+++ b/vis/vis.h
@@ -25,7 +25,9 @@
 #include <pthread.h>
 #include <sys/socket.h>
 #include <sys/types.h>
+#include <sys/time.h>
 #include <arpa/inet.h>
+#include <netinet/in.h>
 #include <errno.h>


--
1.6.0.6

_______________________________________________
B.A.T.M.A.N mailing list
B.A.T.M.A.N@open-mesh.net
https://list.open-mesh.net/mm/listinfo/b.a.t.m.a.n