diff --git a/src/msg/async/net_handler.cc b/src/msg/async/net_handler.cc index 59f703fe20e..3ab1855da9f 100644 --- a/src/msg/async/net_handler.cc +++ b/src/msg/async/net_handler.cc @@ -40,6 +40,7 @@ int NetHandler::create_socket(int domain, bool reuse_addr) return -errno; } +#if !defined(__FreeBSD__) /* Make sure connection-intensive things like the benchmark * will be able to close/open sockets a zillion of times */ if (reuse_addr) { @@ -50,6 +51,7 @@ int NetHandler::create_socket(int domain, bool reuse_addr) return -errno; } } +#endif return s; }