equal
deleted
inserted
replaced
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; |