1
0
Fork 0

FreeBSD fixes

From Ganael Laplanche.
This commit is contained in:
James Turner 2014-04-04 15:33:27 +01:00
parent 01dca5e541
commit 5002814554
4 changed files with 7 additions and 2 deletions

View file

@ -45,6 +45,9 @@ typedef int socklen_t;
#include <sys/socket.h>
#endif
// FlightGear modification: for FreeBSD compat
#include <sys/time.h> // for struct timeval
#ifdef BUILDING_DLL
# if defined(WIN32) || defined(_WIN32_WCE)
# ifdef _MSC_VER

View file

@ -72,7 +72,8 @@
#include <arpa/inet.h>
#include <time.h>
#if !defined(MACOSX) && !defined(__OpenBSD__)
// FlightGear: Modified to include FreeBSD
#if !defined(MACOSX) && !defined(__OpenBSD__) && !defined(__FreeBSD__)
#include <malloc.h>
#if !defined(SOLARIS)
#include <error.h>

View file

@ -25,6 +25,7 @@
#include <map>
#include <vector>
#include <string>
#include <ctime> // for time_t
// forward decls
class FGAirport;

View file

@ -28,7 +28,7 @@
#include <simgear/compiler.h>
#include <simgear/sg_inlines.h>
#include <stdio.h> // size_t
#include <cstdlib> // size_t
#include <string>
#include <simgear/constants.h>