1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

ios: adapt to MSG_NOSIGNAL available in iOS SDK 12+

This commit is contained in:
小明 2020-09-20 19:14:48 +01:00 committed by Andy Green
parent 16963f0430
commit 7b2ef3b19e

View file

@ -183,6 +183,8 @@ delete_from_fd(const struct lws_context *context, int fd);
* but happily have something equivalent in the SO_NOSIGPIPE flag.
*/
#ifdef __APPLE__
/* iOS SDK 12+ seems to define it, undef it for compatibility both ways */
#undef MSG_NOSIGNAL
#define MSG_NOSIGNAL SO_NOSIGPIPE
#endif