For PR351:
* Ensure #includes are wrapped with appropriate HAVE_ guards
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19156 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/System/Unix/Signals.inc b/lib/System/Unix/Signals.inc
index 8a3eee1..c695229 100644
--- a/lib/System/Unix/Signals.inc
+++ b/lib/System/Unix/Signals.inc
@@ -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 {