From 34188e892fa94ba39f35b8c7f053dc5c6e67dd29 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 20 Jan 2024 09:34:16 +1100 Subject: [PATCH] AP_HAL_SITL: correct ubsan compilation --- libraries/AP_HAL_SITL/Scheduler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_HAL_SITL/Scheduler.cpp b/libraries/AP_HAL_SITL/Scheduler.cpp index 93fed42129..c925a0ca5b 100644 --- a/libraries/AP_HAL_SITL/Scheduler.cpp +++ b/libraries/AP_HAL_SITL/Scheduler.cpp @@ -14,6 +14,7 @@ #endif #include #ifdef UBSAN_ENABLED +#include #include #endif @@ -61,6 +62,7 @@ void __ubsan_get_current_report_data(const char **OutIssueKind, const char **OutFilename, unsigned *OutLine, unsigned *OutCol, char **OutMemoryAddr); +void __ubsan_on_report(); void __ubsan_on_report() { static int fd = -1;