summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeuner <github@quidecco.de>2018-07-26 21:49:38 +0200
committerSmallJoker <SmallJoker@users.noreply.github.com>2018-07-26 21:49:38 +0200
commitd7d451c647f1fff7983178a9817888f4d0bab695 (patch)
treed90bec499cde3a78007e85c6745d2a40e08e95fe /src
parent0d55879a1ad29322d586a1acc1bb6de1fa6b3f6d (diff)
downloadminetest-d7d451c647f1fff7983178a9817888f4d0bab695.tar.gz
minetest-d7d451c647f1fff7983178a9817888f4d0bab695.tar.bz2
minetest-d7d451c647f1fff7983178a9817888f4d0bab695.zip
Fix build on gcc 5.0 (#7586)
Diffstat (limited to 'src')
-rw-r--r--src/mapgen/mg_ore.cpp1
-rw-r--r--src/network/connection.cpp1
-rw-r--r--src/util/srp.cpp3
3 files changed, 5 insertions, 0 deletions
diff --git a/src/mapgen/mg_ore.cpp b/src/mapgen/mg_ore.cpp
index 6f27b91ac..c36249cb9 100644
--- a/src/mapgen/mg_ore.cpp
+++ b/src/mapgen/mg_ore.cpp
@@ -24,6 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "map.h"
#include "log.h"
#include "util/numeric.h"
+#include <cmath>
#include <algorithm>
diff --git a/src/network/connection.cpp b/src/network/connection.cpp
index 366f94c52..495b15426 100644
--- a/src/network/connection.cpp
+++ b/src/network/connection.cpp
@@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <iomanip>
#include <cerrno>
#include <algorithm>
+#include <cmath>
#include "connection.h"
#include "serialization.h"
#include "log.h"
diff --git a/src/util/srp.cpp b/src/util/srp.cpp
index a3452e022..d825f0ebc 100644
--- a/src/util/srp.cpp
+++ b/src/util/srp.cpp
@@ -27,6 +27,9 @@
*/
// clang-format off
+
+#include <cstddef>
+
#ifdef WIN32
#include <windows.h>
#include <wincrypt.h>