Ivan Ngeow: Fixed compile for FreeBSD platforms.

This commit is contained in:
ThorstenB 2011-02-11 18:49:01 +01:00
parent 73084863b7
commit 5208750cdb

View File

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