aboutsummaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/collision/BoundingIntervalHierarchy.h4
-rw-r--r--src/server/shared/Database/MySQLConnection.cpp3
-rwxr-xr-xsrc/server/shared/Database/QueryResult.h4
-rw-r--r--src/server/worldserver/CMakeLists.txt1
4 files changed, 8 insertions, 4 deletions
diff --git a/src/server/collision/BoundingIntervalHierarchy.h b/src/server/collision/BoundingIntervalHierarchy.h
index 509eb3d2488..27b65957c47 100644
--- a/src/server/collision/BoundingIntervalHierarchy.h
+++ b/src/server/collision/BoundingIntervalHierarchy.h
@@ -31,6 +31,10 @@
#include <limits>
#include <cmath>
+#ifdef __APPLE__
+ #define isnan(x) ( std::isnan(x) )
+#endif
+
#define MAX_STACK_SIZE 64
#ifdef _MSC_VER
diff --git a/src/server/shared/Database/MySQLConnection.cpp b/src/server/shared/Database/MySQLConnection.cpp
index 9fe720bf1d1..ca06dca14c6 100644
--- a/src/server/shared/Database/MySQLConnection.cpp
+++ b/src/server/shared/Database/MySQLConnection.cpp
@@ -19,6 +19,9 @@
#include "Common.h"
+#ifdef _WIN32
+ #include <winsock2.h>
+#endif
#include <mysql.h>
#include "DatabaseEnv.h"
diff --git a/src/server/shared/Database/QueryResult.h b/src/server/shared/Database/QueryResult.h
index d87551996f5..5dfb03a1a16 100755
--- a/src/server/shared/Database/QueryResult.h
+++ b/src/server/shared/Database/QueryResult.h
@@ -28,10 +28,8 @@
#ifdef _WIN32
#include <winsock2.h>
- #include <mysql.h>
-#else
- #include <mysql/mysql.h>
#endif
+#include <mysql.h>
class QueryResult
{
diff --git a/src/server/worldserver/CMakeLists.txt b/src/server/worldserver/CMakeLists.txt
index 6c780a4cdbc..243f08ce65d 100644
--- a/src/server/worldserver/CMakeLists.txt
+++ b/src/server/worldserver/CMakeLists.txt
@@ -156,7 +156,6 @@ if( UNIX )
endif()
if( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
- set(worldserver_LINK_FLAGS "-framework Carbon ${worldserver_LINK_FLAGS}")
set(SCRIPT_LIB "")
endif()