diff options
| author | Takuto Ikuta <tikuta@google.com> | 2025-02-12 22:18:02 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-12 14:18:02 +0100 |
| commit | 75dd4119b2798a53241089f77922a2e13ead6b94 (patch) | |
| tree | fba90c7818da8604e55ce9e38de5a118d7dbb3ff /libcxxabi | |
| parent | 7647f478c3244f39e92b99ec07667595f86b84ff (diff) | |
[libc++abi] Add a missing include for abort() (#126865)
This is to fix a build error when we use Clang modules in Chromium.
Diffstat (limited to 'libcxxabi')
| -rw-r--r-- | libcxxabi/src/cxa_default_handlers.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxxabi/src/cxa_default_handlers.cpp b/libcxxabi/src/cxa_default_handlers.cpp index b029982ea87c..97a6765fde8e 100644 --- a/libcxxabi/src/cxa_default_handlers.cpp +++ b/libcxxabi/src/cxa_default_handlers.cpp @@ -9,6 +9,7 @@ // new_handler. //===----------------------------------------------------------------------===// +#include <cstdlib> // std::abort #include <exception> #include <new> #include "abort_message.h" @@ -94,7 +95,7 @@ static void demangling_unexpected_handler() static constexpr std::terminate_handler default_terminate_handler = demangling_terminate_handler; static constexpr std::terminate_handler default_unexpected_handler = demangling_unexpected_handler; #else // !LIBCXXABI_SILENT_TERMINATE -static constexpr std::terminate_handler default_terminate_handler = ::abort; +static constexpr std::terminate_handler default_terminate_handler = std::abort; static constexpr std::terminate_handler default_unexpected_handler = std::terminate; #endif // !LIBCXXABI_SILENT_TERMINATE |
