diff --git a/platforms/common/uORB/uORBManager.cpp b/platforms/common/uORB/uORBManager.cpp index b0e5eb35666b..549269e5898c 100644 --- a/platforms/common/uORB/uORBManager.cpp +++ b/platforms/common/uORB/uORBManager.cpp @@ -413,7 +413,7 @@ int uORB::Manager::orb_poll(orb_poll_struct_t *fds, unsigned int nfds, int timeo } else { // Wait event for a maximum timeout time struct timespec to; -#if defined(ENABLE_LOCKSTEP_SCHEDULER) +#if defined(CONFIG_ARCH_BOARD_PX4_SITL) px4_clock_gettime(CLOCK_MONOTONIC, &to); #else px4_clock_gettime(CLOCK_REALTIME, &to);