From c0df412ad2a5236a66ff1b608aeddc744b563e79 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Tue, 4 Apr 2023 21:21:45 +0100 Subject: [PATCH] [lldb] Fix build on older FreeBSD Commit 392d9eb03af5a1adac66a86939351b22b3e73495 added a dependency on FPE_FLTIDO which was only defined in FreeBSD main on May 19, 2022 and is not in all supported releases. Just define it if it's missing as we could use a debugger compiled on an older system to debug a newer one. Reviewed by: DavidSpickett, emaste, dim Differential Revision: https://reviews.llvm.org/D147300 --- lldb/source/Plugins/Process/Utility/FreeBSDSignals.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lldb/source/Plugins/Process/Utility/FreeBSDSignals.cpp b/lldb/source/Plugins/Process/Utility/FreeBSDSignals.cpp index f436de0..ebf1973 100644 --- a/lldb/source/Plugins/Process/Utility/FreeBSDSignals.cpp +++ b/lldb/source/Plugins/Process/Utility/FreeBSDSignals.cpp @@ -11,6 +11,10 @@ #ifdef __FreeBSD__ #include +#ifndef FPE_FLTIDO +#define FPE_FLTIDO 9 +#endif + #define ADD_SIGCODE(signal_name, signal_value, code_name, code_value, ...) \ static_assert(signal_name == signal_value, \ "Value mismatch for signal number " #signal_name); \ -- 2.7.4