]> git.mxchange.org Git - simgear.git/commitdiff
Ivan Ngeow: Fixed compile for FreeBSD platforms.
authorThorstenB <brehmt@gmail.com>
Fri, 11 Feb 2011 17:49:01 +0000 (18:49 +0100)
committerThorstenB <brehmt@gmail.com>
Fri, 11 Feb 2011 17:49:01 +0000 (18:49 +0100)
simgear/io/raw_socket.hxx

index f68ff105b35cc9c2b9a97d47ddb768da0dc80c65..4eb304488847c9bfef2280db90f127b22ac87e44 100644 (file)
@@ -25,7 +25,7 @@
 
 #include <errno.h>
 
-#if defined(__APPLE__)
+#if defined(__APPLE__) || defined(__FreeBSD__)
 #  include <netinet/in.h>
 #endif
 
@@ -38,7 +38,7 @@ namespace simgear
 class IPAddress
 {
   /* DANGER!!!  This MUST match 'struct sockaddr_in' exactly! */
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__FreeBSD__)
   __uint8_t      sin_len;
   __uint8_t      sin_family;
   in_port_t      sin_port;