diff --git a/sw/simulator/nps/nps_fdm_crrcsim.c b/sw/simulator/nps/nps_fdm_crrcsim.c index 3dcd63f0a4..d2223b8de0 100644 --- a/sw/simulator/nps/nps_fdm_crrcsim.c +++ b/sw/simulator/nps/nps_fdm_crrcsim.c @@ -460,6 +460,11 @@ void decode_imupacket(struct NpsFdm * fdm, byte* buffer) #endif } +// compatibility with OSX +#ifdef __APPLE__ +#define MSG_NOSIGNAL SO_NOSIGPIPE +#endif + /*************************************************************************************** * send servo command over udp ***************************************************************************************/