$OpenBSD: patch-src_llvm_lib_Support_Unix_Signals_inc,v 1.1 2017/02/02 08:02:50 landry Exp $
--- src/llvm/lib/Support/Unix/Signals.inc.orig	Sun Jan 29 09:10:11 2017
+++ src/llvm/lib/Support/Unix/Signals.inc	Sun Jan 29 09:10:29 2017
@@ -24,7 +24,7 @@
 #include "llvm/Support/raw_ostream.h"
 #include <algorithm>
 #include <string>
-#if HAVE_EXECINFO_H
+#if defined(HAVE_BACKTRACE) && defined(ENABLE_BACKTRACES)
 # include <execinfo.h>         // For backtrace().
 #endif
 #if HAVE_SIGNAL_H
