mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-03 14:38:44 -04:00
SITL: fix pthread_setname_np to build on mac
This commit is contained in:
parent
206c4b95c7
commit
0ecce2ed22
@ -125,7 +125,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