@cryptotaxi247 / netdata-1 / commits / 66a7fc6fa

silence error about SO_REUSEPORT if it is not available on the system

Costa Tsaousis (ktsaou) committed May 22, 2017 at 13:28 UTC 66a7fc6fad694e234e7a0eca5b7d177e97471411
1 file changed +1 -1
src/socket.c
+1 -1
@@ -48,9 +48,9 @@ int sock_setreuse_port(int fd, int reuse) {
48 int ret = -1;
49 #ifdef SO_REUSEPORT
50 ret = setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &reuse, sizeof(reuse));
51 -#endif
51 if(ret == -1)
52 error("failed to set SO_REUSEPORT on socket %d", fd);
53 +#endif
54
55 return ret;
56 }