From 5002814554d59e058e5a8d3bbe7f64a3d2b8c577 Mon Sep 17 00:00:00 2001 From: James Turner Date: Fri, 4 Apr 2014 15:33:27 +0100 Subject: [PATCH] FreeBSD fixes From Ganael Laplanche. --- 3rdparty/iaxclient/lib/iaxclient.h | 3 +++ 3rdparty/iaxclient/lib/libiax2/src/iax.c | 3 ++- src/Airports/airports_fwd.hxx | 1 + src/FDM/JSBSim/JSBSim.cxx | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/3rdparty/iaxclient/lib/iaxclient.h b/3rdparty/iaxclient/lib/iaxclient.h index 8d14afbcb..34918fa0c 100644 --- a/3rdparty/iaxclient/lib/iaxclient.h +++ b/3rdparty/iaxclient/lib/iaxclient.h @@ -45,6 +45,9 @@ typedef int socklen_t; #include #endif +// FlightGear modification: for FreeBSD compat +#include // for struct timeval + #ifdef BUILDING_DLL # if defined(WIN32) || defined(_WIN32_WCE) # ifdef _MSC_VER diff --git a/3rdparty/iaxclient/lib/libiax2/src/iax.c b/3rdparty/iaxclient/lib/libiax2/src/iax.c index 5faa20581..2234b2d10 100644 --- a/3rdparty/iaxclient/lib/libiax2/src/iax.c +++ b/3rdparty/iaxclient/lib/libiax2/src/iax.c @@ -72,7 +72,8 @@ #include #include -#if !defined(MACOSX) && !defined(__OpenBSD__) +// FlightGear: Modified to include FreeBSD +#if !defined(MACOSX) && !defined(__OpenBSD__) && !defined(__FreeBSD__) #include #if !defined(SOLARIS) #include diff --git a/src/Airports/airports_fwd.hxx b/src/Airports/airports_fwd.hxx index 6b89c0e82..a596f3db9 100644 --- a/src/Airports/airports_fwd.hxx +++ b/src/Airports/airports_fwd.hxx @@ -25,6 +25,7 @@ #include #include #include +#include // for time_t // forward decls class FGAirport; diff --git a/src/FDM/JSBSim/JSBSim.cxx b/src/FDM/JSBSim/JSBSim.cxx index 9f8ed7761..91c4dd615 100644 --- a/src/FDM/JSBSim/JSBSim.cxx +++ b/src/FDM/JSBSim/JSBSim.cxx @@ -28,7 +28,7 @@ #include #include -#include // size_t +#include // size_t #include #include