diff options
author | Vijay Bellur <vijay@gluster.com> | 2010-06-08 04:37:57 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-06-08 22:01:41 -0700 |
commit | 4437568045175027a18abbd930b12b880b28a6a7 (patch) | |
tree | 7cb926aa89668618cbeed4ab1192d92d589538bb | |
parent | c9676d181de6475a045f0fa7fd18e951166a07cc (diff) |
Fix compilation failure on Solaris in __socket_keepalive()v3.0.5rc6
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
-rw-r--r-- | transport/socket/src/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/transport/socket/src/socket.c b/transport/socket/src/socket.c index d1c63353dcd..19a186768cd 100644 --- a/transport/socket/src/socket.c +++ b/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) |