From b87553684a928c8610f3c72aa2b7c48e8ef92c0d Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 14 Aug 2009 20:02:08 +0000 Subject: [PATCH] More for prev commit --- libraries/libldap/os-ip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/libldap/os-ip.c b/libraries/libldap/os-ip.c index ec3244c2de..49fdc271b3 100644 --- a/libraries/libldap/os-ip.c +++ b/libraries/libldap/os-ip.c @@ -162,7 +162,7 @@ ldap_int_prepare_socket(LDAP *ld, int s, int proto ) if ( ld->ld_options.ldo_keepalive_probes > 0 ) { #ifdef TCP_KEEPCNT - if ( setsockopt( s, SOL_TCP, TCP_KEEPCNT, + if ( setsockopt( s, IPPROTO_TCP, TCP_KEEPCNT, (void*) &ld->ld_options.ldo_keepalive_probes, sizeof(ld->ld_options.ldo_keepalive_probes) ) == AC_SOCKET_ERROR ) { @@ -179,7 +179,7 @@ ldap_int_prepare_socket(LDAP *ld, int s, int proto ) if ( ld->ld_options.ldo_keepalive_interval > 0 ) { #ifdef TCP_KEEPINTVL - if ( setsockopt( s, SOL_TCP, TCP_KEEPINTVL, + if ( setsockopt( s, IPPROTO_TCP, TCP_KEEPINTVL, (void*) &ld->ld_options.ldo_keepalive_interval, sizeof(ld->ld_options.ldo_keepalive_interval) ) == AC_SOCKET_ERROR ) { -- 2.39.5