FreeBSD fixes
From Ganael Laplanche.
This commit is contained in:
parent
01dca5e541
commit
5002814554
4 changed files with 7 additions and 2 deletions
3
3rdparty/iaxclient/lib/iaxclient.h
vendored
3
3rdparty/iaxclient/lib/iaxclient.h
vendored
|
@ -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
|
||||
|
|
3
3rdparty/iaxclient/lib/libiax2/src/iax.c
vendored
3
3rdparty/iaxclient/lib/libiax2/src/iax.c
vendored
|
@ -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>
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include <map>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <ctime> // for time_t
|
||||
|
||||
// forward decls
|
||||
class FGAirport;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue