For PR351:
* Ensure #includes are wrapped with appropriate HAVE_ guards

llvm-svn: 19156
diff --git a/llvm/lib/System/Unix/Signals.cpp b/llvm/lib/System/Unix/Signals.cpp
index 8a3eee1..c695229 100644
--- a/llvm/lib/System/Unix/Signals.cpp
+++ b/llvm/lib/System/Unix/Signals.cpp
@@ -15,11 +15,12 @@
 #include "Unix.h"
 #include <vector>
 #include <algorithm>
-#ifdef HAVE_EXECINFO_H
+#if HAVE_EXECINFO_H
 # include <execinfo.h>         // For backtrace().
 #endif
-#include <sys/wait.h>
+#if HAVE_SIGNAL_H
 #include <signal.h>
+#endif
 
 namespace {