diff --git a/libraries/AP_Logger/AP_Logger_MAVLinkLogTransfer.cpp b/libraries/AP_Logger/AP_Logger_MAVLinkLogTransfer.cpp index 28122180df..3403d5f059 100644 --- a/libraries/AP_Logger/AP_Logger_MAVLinkLogTransfer.cpp +++ b/libraries/AP_Logger/AP_Logger_MAVLinkLogTransfer.cpp @@ -22,7 +22,7 @@ #include #include // for LOG_ENTRY -#ifndef HAL_NO_GCS +#if HAL_GCS_ENABLED extern const AP_HAL::HAL& hal;