From 457a36ee442bfe330a9570d243178aa96bba8589 Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Fri, 14 Aug 2009 22:31:32 +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