From c684f8f0430c225e6dffbd42a8b6eae59dccc3fb Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Fri, 11 Feb 2011 18:49:01 +0100 Subject: [PATCH] Ivan Ngeow: Fixed compile for FreeBSD platforms. --- simgear/io/raw_socket.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/io/raw_socket.hxx b/simgear/io/raw_socket.hxx index f68ff105..4eb30448 100644 --- a/simgear/io/raw_socket.hxx +++ b/simgear/io/raw_socket.hxx @@ -25,7 +25,7 @@ #include -#if defined(__APPLE__) +#if defined(__APPLE__) || defined(__FreeBSD__) # include #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; -- 2.39.5