From 21cf075e419737879f6868643c16de6b612ae223 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Wed, 5 Feb 2020 15:16:12 +0000 Subject: [PATCH] FreeBSD build fix proposal. --- lib/irrlicht/source/Irrlicht/COctreeSceneNode.cpp | 2 +- lib/mcpp/system.c | 1 + src/network/socket_address.hpp | 1 + src/network/stk_ipv6.cpp | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/irrlicht/source/Irrlicht/COctreeSceneNode.cpp b/lib/irrlicht/source/Irrlicht/COctreeSceneNode.cpp index 04e221312..401d77664 100644 --- a/lib/irrlicht/source/Irrlicht/COctreeSceneNode.cpp +++ b/lib/irrlicht/source/Irrlicht/COctreeSceneNode.cpp @@ -88,7 +88,7 @@ void COctreeSceneNode::render() { video::IVideoDriver* driver = SceneManager->getVideoDriver(); - if (VertexType == -1 || !driver) + if (VertexType == (video::E_VERTEX_TYPE)-1 || !driver) return; ICameraSceneNode* camera = SceneManager->getActiveCamera(); diff --git a/lib/mcpp/system.c b/lib/mcpp/system.c index 0386b796a..fb7629e2c 100644 --- a/lib/mcpp/system.c +++ b/lib/mcpp/system.c @@ -36,6 +36,7 @@ * 1. specify the constants in "configed.H" or "noconfig.H", * 2. append the system-dependent routines in this file. */ +#define _POSIX_C_SOURCE 200809L #if PREPROCESSED #include "mcpp.H" #else diff --git a/src/network/socket_address.hpp b/src/network/socket_address.hpp index 014acef4f..836731ce8 100644 --- a/src/network/socket_address.hpp +++ b/src/network/socket_address.hpp @@ -29,6 +29,7 @@ #else # include # include +# include #endif #include diff --git a/src/network/stk_ipv6.cpp b/src/network/stk_ipv6.cpp index 599d7b469..0b4fdcbb7 100644 --- a/src/network/stk_ipv6.cpp +++ b/src/network/stk_ipv6.cpp @@ -42,6 +42,7 @@ extern "C" #include #include #include +#include #include #endif