diff options
Diffstat (limited to 'libglusterfs')
| -rw-r--r-- | libglusterfs/src/syscall.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/libglusterfs/src/syscall.c b/libglusterfs/src/syscall.c index b28f2b9d17d..0987a8628c2 100644 --- a/libglusterfs/src/syscall.c +++ b/libglusterfs/src/syscall.c @@ -733,13 +733,14 @@ sys_socket(int domain, int type, int protocol)  {  #ifdef SOCK_CLOEXEC      return socket(domain, type | SOCK_CLOEXEC, protocol); -#endif +#else      int fd = -1;      fd = socket(domain, type, protocol);      if (fd >= 0)          fcntl(fd, F_SETFD, FD_CLOEXEC);      return fd; +#endif  }  #if (defined(HAVE_ACCEPT4) || defined(HAVE_PACCEPT))  | 
