Whamcloud - gitweb
LU-3963 cleanup: C89 and build cleanups
[fs/lustre-release.git] / libcfs / libcfs / user-tcpip.c
index 4477f13..4b7fdaa 100644 (file)
@@ -521,14 +521,8 @@ libcfs_sock_set_nagle(cfs_socket_t *sock, int nagle)
         int rc;
         int option = nagle ? 0 : 1;
 
-#if defined(__sun__) || defined(__sun)
         rc = setsockopt(sock->s_fd,
                         IPPROTO_TCP, TCP_NODELAY, &option, sizeof(option));
-#else
-        rc = setsockopt(sock->s_fd,
-                        SOL_TCP, TCP_NODELAY, &option, sizeof(option));
-#endif
-
         if (rc != 0) {
                 rc = -errno;
                 CERROR ("Cannot set NODELAY socket option\n");