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:
parent
62e566b9de
commit
c8fc7a6f37
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue