From: Brooks Davis Date: Tue, 4 Apr 2023 20:21:45 +0000 (+0100) Subject: [lldb] Fix build on older FreeBSD X-Git-Tag: upstream/17.0.6~12671 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0df412ad2a5236a66ff1b608aeddc744b563e79;p=platform%2Fupstream%2Fllvm.git [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 --- 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); \