[crrcsim] fix udp sending compatibility with OSX

This commit is contained in:
Gautier Hattenberger
2013-10-19 22:31:19 +02:00
parent dd8389baf3
commit 80479ee805
+5
View File
@@ -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
***************************************************************************************/