From d75e47a4d8e0b91e341d29bb907f4fe768008254 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 2 Mar 2018 15:27:58 +1100 Subject: [PATCH] SITL: cope with cygwin64 --- libraries/SITL/SIM_Aircraft.cpp | 6 +++--- libraries/SITL/SIM_FlightAxis.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/SITL/SIM_Aircraft.cpp b/libraries/SITL/SIM_Aircraft.cpp index 1d8264a0f2..d9e5a79673 100644 --- a/libraries/SITL/SIM_Aircraft.cpp +++ b/libraries/SITL/SIM_Aircraft.cpp @@ -23,7 +23,7 @@ #include -#ifdef __CYGWIN__ +#if defined(__CYGWIN__) || defined(__CYGWIN64__) #include #include #include @@ -54,7 +54,7 @@ Aircraft::Aircraft(const char *home_str, const char *frame_str) : rate_hz(1200.0f), autotest_dir(nullptr), frame(frame_str), -#ifdef __CYGWIN__ +#if defined(__CYGWIN__) || defined(__CYGWIN64__) min_sleep_time(20000) #else min_sleep_time(5000) @@ -429,7 +429,7 @@ void Aircraft::fill_fdm(struct sitl_fdm &fdm) uint64_t Aircraft::get_wall_time_us() const { -#ifdef __CYGWIN__ +#if defined(__CYGWIN__) || defined(__CYGWIN64__) static DWORD tPrev; static uint64_t last_ret_us; if (tPrev == 0) { diff --git a/libraries/SITL/SIM_FlightAxis.cpp b/libraries/SITL/SIM_FlightAxis.cpp index e9054afd4f..8e72a789ca 100644 --- a/libraries/SITL/SIM_FlightAxis.cpp +++ b/libraries/SITL/SIM_FlightAxis.cpp @@ -103,7 +103,7 @@ void *FlightAxis::update_thread(void *arg) { FlightAxis *flightaxis = (FlightAxis *)arg; -#ifdef __CYGWIN__ +#if defined(__CYGWIN__) || defined(__CYGWIN64__) //Cygwin doesn't support pthread_setname_np #elif defined(__APPLE__) && defined(__MACH__) pthread_setname_np("ardupilot-flightaxis");