From 61be4ce2d22f3a00f71b149d8dda7911839a1e2c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 22 Jan 2015 15:58:20 +1100 Subject: [PATCH] HAL_Linux: fixed #if for linux builds --- libraries/AP_HAL_Linux/Util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_Linux/Util.cpp b/libraries/AP_HAL_Linux/Util.cpp index c76bdf5472..6bf9b00e33 100644 --- a/libraries/AP_HAL_Linux/Util.cpp +++ b/libraries/AP_HAL_Linux/Util.cpp @@ -54,7 +54,7 @@ void LinuxUtil::_toneAlarm_timer_tick(){ void LinuxUtil::set_system_clock(uint64_t time_utc_usec) { -#if CONFIG_HAL_BOARD_SUBTYPE != HAL_BOARD_SUBTYPE_NONE +#if CONFIG_HAL_BOARD_SUBTYPE != HAL_BOARD_SUBTYPE_LINUX_NONE timespec ts; ts.tv_sec = time_utc_usec/1.0e6; ts.tv_nsec = (time_utc_usec % 1000000) * 1000;