瀏覽代碼

Merge pull request #11418 from marcelofg55/fix_ch_compilelinux

Fix crash handler not including stdlib.h

[ci skip]
Rémi Verschelde 8 年之前
父節點
當前提交
92031747aa
共有 2 個文件被更改,包括 2 次插入0 次删除
  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)