diff --git a/src/xpdev/sockwrap.c b/src/xpdev/sockwrap.c
index e1ca48185cdb557f5b5cd5c132f48aae3f9817ca..f6379e0cc8f7341cf44c2315858f28ed9474473a 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		},