aboutsummaryrefslogtreecommitdiff
path: root/src/threading
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2015-10-03 13:19:58 -0400
committerShadowNinja <shadowninja@minetest.net>2015-10-03 13:20:43 -0400
commit20405edb06f44308aae760dc2f4dad5c61e0d30f (patch)
treef7b2ff3dd6d7ea78013eb40f374d17953eb5fdac /src/threading
parenta5bdfb6b3cfddaac1e961bd8c8780c74ccde3567 (diff)
downloadminetest-20405edb06f44308aae760dc2f4dad5c61e0d30f.tar.gz
minetest-20405edb06f44308aae760dc2f4dad5c61e0d30f.tar.bz2
minetest-20405edb06f44308aae760dc2f4dad5c61e0d30f.zip
Fix MinGW 32-bit build
Diffstat (limited to 'src/threading')
-rw-r--r--src/threading/semaphore.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/threading/semaphore.cpp b/src/threading/semaphore.cpp
index 00332eaa0..77ceff509 100644
--- a/src/threading/semaphore.cpp
+++ b/src/threading/semaphore.cpp
@@ -26,6 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define UNUSED(expr) do { (void)(expr); } while (0)
#ifdef _WIN32
+ #include <climits>
#define MAX_SEMAPHORE_COUNT LONG_MAX - 1
#else
#include <cerrno>