diff --git a/libraries/AP_CheckFirmware/AP_CheckFirmware_secure_command.cpp b/libraries/AP_CheckFirmware/AP_CheckFirmware_secure_command.cpp index d6578d8c5a..0357c42e72 100644 --- a/libraries/AP_CheckFirmware/AP_CheckFirmware_secure_command.cpp +++ b/libraries/AP_CheckFirmware/AP_CheckFirmware_secure_command.cpp @@ -7,7 +7,11 @@ #if AP_CHECK_FIRMWARE_ENABLED && AP_SIGNED_FIRMWARE && !defined(HAL_BOOTLOADER_BUILD) #include "monocypher.h" -#include +#include + +#if HAL_GCS_ENABLED +#include +#endif extern const AP_HAL::HAL &hal;