aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Unix/Signals.inc
diff options
context:
space:
mode:
authorBrad Smith <brad@comstyle.com>2025-01-31 05:02:50 -0500
committerGitHub <noreply@github.com>2025-01-31 05:02:50 -0500
commit95e19e21c55db7ede8ff7795512bbfc4ca0ca782 (patch)
tree38c010f739be955ef5bee2f100044a6f343eabfc /llvm/lib/Support/Unix/Signals.inc
parent614f1ab7575c83a28811fc6881eba512788101a0 (diff)
downloadllvm-95e19e21c55db7ede8ff7795512bbfc4ca0ca782.zip
llvm-95e19e21c55db7ede8ff7795512bbfc4ca0ca782.tar.gz
llvm-95e19e21c55db7ede8ff7795512bbfc4ca0ca782.tar.bz2
[llvm][Support] Enable dl_iterate_phdr support on OpenBSD and DragonFly (#125186)
Diffstat (limited to 'llvm/lib/Support/Unix/Signals.inc')
-rw-r--r--llvm/lib/Support/Unix/Signals.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/Signals.inc b/llvm/lib/Support/Unix/Signals.inc
index 9a12663..2e7b467 100644
--- a/llvm/lib/Support/Unix/Signals.inc
+++ b/llvm/lib/Support/Unix/Signals.inc
@@ -468,7 +468,8 @@ void llvm::sys::AddSignalHandler(sys::SignalHandlerCallback FnPtr,
#if ENABLE_BACKTRACES && defined(HAVE_BACKTRACE) && \
(defined(__linux__) || defined(__FreeBSD__) || \
- defined(__FreeBSD_kernel__) || defined(__NetBSD__))
+ defined(__FreeBSD_kernel__) || defined(__NetBSD__) || \
+ defined(__OpenBSD__) || defined(__DragonFly__))
struct DlIteratePhdrData {
void **StackTrace;
int depth;