diff --git a/platforms/common/uORB/uORBManager.hpp b/platforms/common/uORB/uORBManager.hpp index c975574758cf..a47e3213b0fd 100644 --- a/platforms/common/uORB/uORBManager.hpp +++ b/platforms/common/uORB/uORBManager.hpp @@ -659,7 +659,7 @@ class Manager { px4_sem_init(&_sem, 1, 0); px4_sem_init(&_lock, 1, 1); -#if __PX4_NUTTX +#if defined(__PX4_NUTTX) sem_setprotocol(&_sem, SEM_PRIO_NONE); sem_setprotocol(&_lock, SEM_PRIO_NONE); #endif