[Lldb-commits] [PATCH] D147300: [lldb] Fix build on older FreeBSD
Brooks Davis via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 30 23:14:25 PDT 2023
brooks created this revision.
brooks added reviewers: DavidSpickett, emaste, arichardson, dim.
Herald added a subscriber: krytarowski.
Herald added a project: All.
brooks requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
Commit 392d9eb03af5a1adac66a86939351b22b3e73495 <https://reviews.llvm.org/rG392d9eb03af5a1adac66a86939351b22b3e73495> added a dependency on
FPE_FLTIDO which was only defined in FreeBSD main on May 19, 2022 and it
not in all releases. Just define it if it's missing.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D147300
Files:
lldb/source/Plugins/Process/Utility/FreeBSDSignals.cpp
Index: lldb/source/Plugins/Process/Utility/FreeBSDSignals.cpp
===================================================================
--- lldb/source/Plugins/Process/Utility/FreeBSDSignals.cpp
+++ lldb/source/Plugins/Process/Utility/FreeBSDSignals.cpp
@@ -11,6 +11,10 @@
#ifdef __FreeBSD__
#include <csignal>
+#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); \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147300.509913.patch
Type: text/x-patch
Size: 607 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230331/b7903657/attachment.bin>
More information about the lldb-commits
mailing list