FreeBSD build fix proposal.

This commit is contained in:
David Carlier 2020-02-05 15:16:12 +00:00
parent 99a5675abe
commit 21cf075e41
4 changed files with 4 additions and 1 deletions

View File

@ -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();

View File

@ -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

View File

@ -29,6 +29,7 @@
#else
# include <netdb.h>
# include <netinet/in.h>
# include <sys/socket.h>
#endif
#include <array>

View File

@ -42,6 +42,7 @@ extern "C"
#include <err.h>
#include <netdb.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <stdlib.h>
#endif