mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix prev commit, it was not Linux-only as it claimed to be.
This commit is contained in:
parent
efabe1d279
commit
f5bad5673b
@ -145,6 +145,10 @@ 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,
|
||||
(void*) &ld->ld_options.ldo_keepalive_idle,
|
||||
sizeof(ld->ld_options.ldo_keepalive_idle) ) == AC_SOCKET_ERROR )
|
||||
|
Loading…
Reference in New Issue
Block a user