mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 16:48:29 -04:00
AP_HAL_SITL: correct ubsan compilation
This commit is contained in:
parent
cac3a2216d
commit
34188e892f
@ -14,6 +14,7 @@
|
||||
#endif
|
||||
#include <AP_RCProtocol/AP_RCProtocol.h>
|
||||
#ifdef UBSAN_ENABLED
|
||||
#include <fcntl.h>
|
||||
#include <sanitizer/asan_interface.h>
|
||||
#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;
|
||||
|
Loading…
Reference in New Issue
Block a user