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;