diff --git a/llvm/unittests/Support/CrashRecoveryTest.cpp b/llvm/unittests/Support/CrashRecoveryTest.cpp index fc65bf6329b3..12f25db270b3 100644 --- a/llvm/unittests/Support/CrashRecoveryTest.cpp +++ b/llvm/unittests/Support/CrashRecoveryTest.cpp @@ -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" @@ -23,6 +24,12 @@ #include #endif +#ifdef LLVM_ON_UNIX +#ifdef HAVE_SIGNAL_H +#include +#endif +#endif + using namespace llvm; using namespace llvm::sys;