From cdd350f93e55df764d2f0bc7eaa4f94ed5fa7456 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 18 Nov 2017 21:23:15 +1100 Subject: [PATCH] SITL: fixed build under cygwin --- libraries/SITL/SIM_FlightAxis.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/SITL/SIM_FlightAxis.cpp b/libraries/SITL/SIM_FlightAxis.cpp index 87fa87ff27..537d957b8f 100644 --- a/libraries/SITL/SIM_FlightAxis.cpp +++ b/libraries/SITL/SIM_FlightAxis.cpp @@ -90,7 +90,9 @@ void *FlightAxis::update_thread(void *arg) { FlightAxis *flightaxis = (FlightAxis *)arg; +#ifndef __CYGWIN__ pthread_setname_np(pthread_self(), "ardupilot-flightaxis"); +#endif flightaxis->update_loop(); return nullptr;