always export iscsi_set_tcp_keepalive()

Set only the (socket) options which are defined on a given platform.
The function becomes a no-op if no option is known at complie time.
Remove autoconf test for HAVE_TCP_KEEPALIVE too.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
Michael Tokarev
2012-05-12 01:20:01 +04:00
committed by Ronnie Sahlberg
parent c91de1e35a
commit aee0e3bf72
3 changed files with 10 additions and 19 deletions

View File

@@ -61,8 +61,8 @@ EXTERN int iscsi_service(struct iscsi_context *iscsi, int revents);
EXTERN int iscsi_queue_length(struct iscsi_context *iscsi);
/*
* To set tcp keepalive for the session
* ONLY available on platforms with tcp keepalive socket options
* To set tcp keepalive for the session.
* Only options supported by given platform (if any) are set.
*/
int iscsi_set_tcp_keepalive(struct iscsi_context *iscsi, int idle, int count, int interval);