Fix f5314d15af4f4514103ea12c74cb208538b8bef5 - [Support] On Unix, let the CrashRecove...
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>
Thu, 24 Sep 2020 13:07:13 +0000 (09:07 -0400)
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>
Thu, 24 Sep 2020 13:07:22 +0000 (09:07 -0400)
This was causing bots to fail: http://green.lab.llvm.org/green/job/clang-stage1-RA/14828/consoleFull#6384962949ba4694-19c4-4d7e-bec5-911270d8a58c

llvm/unittests/Support/CrashRecoveryTest.cpp

index fc65bf6..12f25db 100644 (file)
@@ -7,6 +7,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/ADT/Triple.h"
+#include "llvm/Config/config.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Compiler.h"
 #include "llvm/Support/CrashRecoveryContext.h"
 #include <windows.h>
 #endif
 
+#ifdef LLVM_ON_UNIX
+#ifdef HAVE_SIGNAL_H
+#include <signal.h>
+#endif
+#endif
+
 using namespace llvm;
 using namespace llvm::sys;