Fix FreeBSD builds.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@308150 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Paul Belanger
2011-02-16 20:21:17 +00:00
parent 3dcf79a893
commit 735eb73607

View File

@@ -191,8 +191,9 @@ typedef socklen_t OOSOCKLEN;
int ooSocketCreate (OOSOCKET* psocket)
{
int on;
int keepalive = 1;
#ifdef __linux__
int keepalive = 1, keepcnt = 24, keepidle = 120, keepintvl = 30;
int keepcnt = 24, keepidle = 120, keepintvl = 30;
#endif
struct linger linger;
OOSOCKET sock = socket (AF_INET,