Merge pull request #2194 from hopToDev/master

Added SIGPIPE handling for iOS.
This commit is contained in:
Marc-André Moreau 2014-11-11 09:43:38 -05:00
commit e685acdbc5
1 changed files with 1 additions and 1 deletions

View File

@ -787,7 +787,7 @@ BOOL tcp_set_keep_alive_mode(rdpTcp* tcp)
#endif
#endif
#ifdef __MACOSX__
#if defined(__MACOSX__) || defined(__IOS__)
option_value = 1;
option_len = sizeof(option_value);
if (setsockopt(tcp->sockfd, SOL_SOCKET, SO_NOSIGPIPE, (void *) &option_value, option_len) < 0)