diff options
author | Vijay Bellur <vijay@gluster.com> | 2010-06-08 06:14:30 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-06-08 05:25:10 -0700 |
commit | d0b2695d773d3bbf162b367735c39d0e5bd7063a (patch) | |
tree | b54e688ec3d1fb2edd031e0ffafba1724538ab99 /xlators/protocol | |
parent | a912b145157beb1700250872d672bb03fffe658f (diff) |
Fix compilation failure on Solaris in __socket_keepalive()
Signed-off-by: Vijay Bellur <vijay@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 987 (Solaris compilation fails)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=987
Diffstat (limited to 'xlators/protocol')
-rw-r--r-- | xlators/protocol/transport/socket/src/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/protocol/transport/socket/src/socket.c b/xlators/protocol/transport/socket/src/socket.c index c5c019c48..fd3815d83 100644 --- a/xlators/protocol/transport/socket/src/socket.c +++ b/xlators/protocol/transport/socket/src/socket.c @@ -259,7 +259,7 @@ __socket_keepalive (int fd, int keepalive_intvl) if (keepalive_intvl == GF_USE_DEFAULT_KEEPALIVE) goto done; -#ifdef GF_DARWIN_HOST_OS +#ifndef GF_LINUX_HOST_OS ret = setsockopt (fd, IPPROTO_TCP, TCP_KEEPALIVE, &keepalive_intvl, sizeof (keepalive_intvl)); if (ret == -1) |