]> git.mxchange.org Git - flightgear.git/commitdiff
FreeBSD fixes
authorJames Turner <zakalawe@mac.com>
Fri, 4 Apr 2014 14:33:27 +0000 (15:33 +0100)
committerJames Turner <zakalawe@mac.com>
Fri, 4 Apr 2014 14:33:27 +0000 (15:33 +0100)
From Ganael Laplanche.

3rdparty/iaxclient/lib/iaxclient.h
3rdparty/iaxclient/lib/libiax2/src/iax.c
src/Airports/airports_fwd.hxx
src/FDM/JSBSim/JSBSim.cxx

index 8d14afbcbbe0e990a49ef263dd1699f6d66d9b9b..34918fa0c01682dac23badcc92a48176238cc61c 100644 (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
index 5faa20581722cbebb7f6ffbc2ec1a15db8c1fe5a..2234b2d10d83918b0c3f813dbeb6178ca09d5639 100644 (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>
index 6b89c0e82f20f936e67b74549066b3498968dfed..a596f3db968aaa7337855a90d927424bca7431a7 100644 (file)
@@ -25,6 +25,7 @@
 #include <map>
 #include <vector>
 #include <string>
+#include <ctime> // for time_t
 
 // forward decls
 class FGAirport;
index 9f8ed776163951891b319834b28fd0ce3e6df6a9..91c4dd615b41449111798f7f05c5ccef5fc2b62f 100644 (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>