summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorMarcelo Fernandez <marcelofg55@gmail.com>2017-09-19 11:21:45 -0300
committerMarcelo Fernandez <marcelofg55@gmail.com>2017-09-19 11:21:45 -0300
commit9a0aa45d5ccf3cccf276d470433fff6cea2959c0 (patch)
treeec6b8c3adff5f8395826603265ddb30d387fc4d5 /platform
parent33e1716f1370b129af37ed93bbf7a6736ad43808 (diff)
Fix crash handler not including stdlib.h
Diffstat (limited to 'platform')
-rw-r--r--platform/osx/crash_handler_osx.mm1
-rw-r--r--platform/x11/crash_handler_x11.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/platform/osx/crash_handler_osx.mm b/platform/osx/crash_handler_osx.mm
index a8146696bc..2ed88db309 100644
--- a/platform/osx/crash_handler_osx.mm
+++ b/platform/osx/crash_handler_osx.mm
@@ -43,6 +43,7 @@
#include <dlfcn.h>
#include <execinfo.h>
#include <signal.h>
+#include <stdlib.h>
#include <mach-o/dyld.h>
#include <mach-o/getsect.h>
diff --git a/platform/x11/crash_handler_x11.cpp b/platform/x11/crash_handler_x11.cpp
index 419b014475..3c54d5cbc2 100644
--- a/platform/x11/crash_handler_x11.cpp
+++ b/platform/x11/crash_handler_x11.cpp
@@ -39,6 +39,7 @@
#include <dlfcn.h>
#include <execinfo.h>
#include <signal.h>
+#include <stdlib.h>
static void handle_crash(int sig) {
if (OS::get_singleton() == NULL)