From e4c8a58928d2fc94bc9b7eb6f6ef5115f7dd6f06 Mon Sep 17 00:00:00 2001 From: Jens Georg Date: Tue, 4 Jun 2013 13:04:20 +0200 Subject: [PATCH] Use SO_REUSEPORT on FreeBSD as well This is used in the ports file for GSSDP downstream so let's just take it upstream. --- libgssdp/gssdp-socket-functions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgssdp/gssdp-socket-functions.c b/libgssdp/gssdp-socket-functions.c index 4669f96..e77318b 100644 --- a/libgssdp/gssdp-socket-functions.c +++ b/libgssdp/gssdp-socket-functions.c @@ -159,10 +159,10 @@ gboolean gssdp_socket_reuse_address (GSocket *socket, gboolean enable, GError **error) { -#if defined(G_OS_WIN32) || defined(__OpenBSD__) || defined(__NetBSD__) +#if defined(G_OS_WIN32) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) return gssdp_socket_option_set (socket, SOL_SOCKET, -#if defined(__OpenBSD__) || defined (__NetBSD__) +#if defined(__OpenBSD__) || defined (__NetBSD__) || defined (__FreeBSD__) SO_REUSEPORT, #else SO_REUSEADDR, -- 2.7.4