From 10653783d3f80583e4dae264e5067890cd6946d6 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Thu, 1 May 2008 01:10:56 +0000 Subject: [PATCH] Add REUSEPORT option for BSD systems. --- src/xpdev/sockwrap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xpdev/sockwrap.c b/src/xpdev/sockwrap.c index e1ca48185c..f6379e0cc8 100644 --- a/src/xpdev/sockwrap.c +++ b/src/xpdev/sockwrap.c @@ -69,6 +69,9 @@ static socket_option_t socket_options[] = { #endif { "REUSEADDR", 0, SOL_SOCKET, SO_REUSEADDR }, +#ifdef SO_REUSEPORT /* BSD */ + { "REUSEPORT", 0, SOL_SOCKET, SO_REUSEPORT }, +#endif { "KEEPALIVE", SOCK_STREAM, SOL_SOCKET, SO_KEEPALIVE }, { "DONTROUTE", 0, SOL_SOCKET, SO_DONTROUTE }, { "BROADCAST", SOCK_DGRAM, SOL_SOCKET, SO_BROADCAST }, -- GitLab