Whamcloud - gitweb
LU-4976 doc: comments to osp_precreate.c
[fs/lustre-release.git] / libcfs / libcfs / user-tcpip.c
index 2401e9b..da0d2a1 100644 (file)
@@ -1,6 +1,4 @@
-/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
- * vim:expandtab:shiftwidth=8:tabstop=8:
- *
+/*
  * GPL HEADER START
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #include <arpa/inet.h>
 #include <errno.h>
 #include <fcntl.h>
-#if defined(__sun__) || defined(__sun)
-#include <sys/sockio.h>
-#endif
-#ifndef __CYGWIN__
 #include <sys/syscall.h>
-#endif
 
 /*
  * Functions to get network interfaces info
@@ -523,14 +516,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");