diff --git a/libraries/AP_HAL_PX4/Semaphores.h b/libraries/AP_HAL_PX4/Semaphores.h index 3e16f81515..59300889bb 100644 --- a/libraries/AP_HAL_PX4/Semaphores.h +++ b/libraries/AP_HAL_PX4/Semaphores.h @@ -1,9 +1,10 @@ #pragma once #include - -#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 -#include "AP_HAL_PX4.h" +#include +#include +#include +#include "AP_HAL_PX4_Namespace.h" #include class PX4::Semaphore : public AP_HAL::Semaphore { @@ -17,4 +18,4 @@ public: private: pthread_mutex_t _lock; }; -#endif // CONFIG_HAL_BOARD +