Added SIGPIPE handling for iOS.

This commit is contained in:
Mehul Dhorda 2014-11-10 11:52:29 -08:00
parent e8b8ae1900
commit 256eab682b
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)