loudmouth/lm-sock.c
changeset 653 49b6d6bc7321
parent 652 c20a83e11260
child 664 f57b1b61e1fe
equal deleted inserted replaced
652:c20a83e11260 653:49b6d6bc7321
   313 gboolean
   313 gboolean
   314 _lm_sock_set_keepalive (LmOldSocketT sock, int delay)
   314 _lm_sock_set_keepalive (LmOldSocketT sock, int delay)
   315 {
   315 {
   316 #ifdef USE_TCP_KEEPALIVES
   316 #ifdef USE_TCP_KEEPALIVES
   317 
   317 
   318 #ifdef __APPLE__
   318 #if defined(__APPLE__) && !defined(TCP_KEEPIDLE)
   319 #ifndef TCP_KEEPIDLE
       
   320 #define TCP_KEEPIDLE TCP_KEEPALIVE
   319 #define TCP_KEEPIDLE TCP_KEEPALIVE
   321 #endif
       
   322 #endif
   320 #endif
   323 
   321 
   324     int opt;
   322     int opt;
   325 
   323 
   326     opt = 1;
   324     opt = 1;