Browse Source

Fix crash handler not including stdlib.h

Marcelo Fernandez 8 years ago
parent
commit
9a0aa45d5c
2 changed files with 2 additions and 0 deletions
  1. 1 0
      platform/osx/crash_handler_osx.mm
  2. 1 0
      platform/x11/crash_handler_x11.cpp

+ 1 - 0
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>

+ 1 - 0
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)