From 146f2f8304e9d1a736620f762668cbce4178a216 Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Tue, 14 Nov 2023 17:02:07 +0200 Subject: [PATCH] uORB/uORBManager.hpp: Fix pre-processor condition #if __PX4_NUTTX does nothing, change it to #if defined() --- platforms/common/uORB/uORBManager.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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