aboutsummaryrefslogtreecommitdiffstats
path: root/addons/ooh323c/src/ooSocket.c
diff options
context:
space:
mode:
Diffstat (limited to 'addons/ooh323c/src/ooSocket.c')
-rw-r--r--addons/ooh323c/src/ooSocket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/ooh323c/src/ooSocket.c b/addons/ooh323c/src/ooSocket.c
index 5ec8ed5b3..5527c5f14 100644
--- a/addons/ooh323c/src/ooSocket.c
+++ b/addons/ooh323c/src/ooSocket.c
@@ -191,7 +191,9 @@ typedef socklen_t OOSOCKLEN;
int ooSocketCreate (OOSOCKET* psocket)
{
int on;
+#ifdef __linux__
int keepalive = 1, keepcnt = 24, keepidle = 120, keepintvl = 30;
+#endif
struct linger linger;
OOSOCKET sock = socket (AF_INET,
SOCK_STREAM,