mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 19:49:35 -05:00
Fix prev commit again, IPPROTO_TCP is the documented correct approach
This commit is contained in:
parent
60627ddf93
commit
9b764c3f9e
1 changed files with 1 additions and 5 deletions
|
|
@ -145,11 +145,7 @@ ldap_int_prepare_socket(LDAP *ld, int s, int proto )
|
|||
if ( ld->ld_options.ldo_keepalive_idle > 0 )
|
||||
{
|
||||
#ifdef TCP_KEEPIDLE
|
||||
/* AIX uses protocol numbers for everything besides SOL_SOCKET */
|
||||
#ifndef SOL_TCP
|
||||
#define SOL_TCP IPPROTO_TCP
|
||||
#endif
|
||||
if ( setsockopt( s, SOL_TCP, TCP_KEEPIDLE,
|
||||
if ( setsockopt( s, IPPROTO_TCP, TCP_KEEPIDLE,
|
||||
(void*) &ld->ld_options.ldo_keepalive_idle,
|
||||
sizeof(ld->ld_options.ldo_keepalive_idle) ) == AC_SOCKET_ERROR )
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue