mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-26 18:48:30 -04:00
SITL: fix pthread_setname_np to build on mac
This commit is contained in:
parent
87658e6a07
commit
4eaa1f17df
@ -103,7 +103,11 @@ void *FlightAxis::update_thread(void *arg)
|
||||
{
|
||||
FlightAxis *flightaxis = (FlightAxis *)arg;
|
||||
|
||||
#ifndef __CYGWIN__
|
||||
#ifdef __CYGWIN__
|
||||
//Cygwin doesn't support pthread_setname_np
|
||||
#elif defined(__APPLE__) && defined(__MACH__)
|
||||
pthread_setname_np("ardupilot-flightaxis");
|
||||
#else
|
||||
pthread_setname_np(pthread_self(), "ardupilot-flightaxis");
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user