fix apple build

This commit is contained in:
Daniel Larimer 2014-05-02 14:09:29 -04:00
parent 61f2ac4679
commit 6532839938

View file

@ -95,9 +95,12 @@ namespace fc {
# endif
(char*)&timeout_sec, sizeof(timeout_sec)) < 0)
wlog("Error setting TCP keepalive idle time");
#ifndef __APPLE__ // TCP_KEEPINTVL does not seem to work on 10.8.4
if (setsockopt(my->_sock.native(), IPPROTO_TCP, TCP_KEEPINTVL,
(char*)&timeout_sec, sizeof(timeout_sec)) < 0)
wlog("Error setting TCP keepalive interval");
#endif // !__APPLE__
#endif
}
else