Merged revisions 308098 via svnmerge from
authorAlexandr Anikin <may@telecom-service.ru>
Wed, 16 Feb 2011 08:06:01 +0000 (08:06 +0000)
committerAlexandr Anikin <may@telecom-service.ru>
Wed, 16 Feb 2011 08:06:01 +0000 (08:06 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r308098 | may | 2011-02-16 10:57:22 +0300 (Wed, 16 Feb 2011) | 2 lines

  ifdef __linux__ keepalive variables also
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@308099 65c4cc65-6c06-0410-ace0-fbb531ad65f3

addons/ooh323c/src/ooSocket.c

index 5ec8ed5..5527c5f 100644 (file)
@@ -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,