[gssdp] Use SO_REUSEPORT on Debian/kFreeBSD



commit 172025f7f122f78ed413aaba9b3189e9c335b1d9
Author: Jens Georg <jensg openismus com>
Date:   Thu Jun 6 11:29:20 2013 +0200

    Use SO_REUSEPORT on Debian/kFreeBSD
    
    Same as e4c8a58928d2fc94bc9b7eb6f6ef5115f7dd6f06 but for Debian on FreeBSD
    kernels where __FreeBSD__ is not defined.

 libgssdp/gssdp-socket-functions.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgssdp/gssdp-socket-functions.c b/libgssdp/gssdp-socket-functions.c
index e77318b..5919e2b 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__) || defined(__FreeBSD__)
+#if defined(G_OS_WIN32) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || 
defined(__FreeBSD_kernel__)
         return gssdp_socket_option_set (socket,
                                         SOL_SOCKET,
-#if defined(__OpenBSD__) || defined (__NetBSD__) || defined (__FreeBSD__)
+#if defined(__OpenBSD__) || defined (__NetBSD__) || defined (__FreeBSD__) || defined(__FreeBSD_kernel__)
                                         SO_REUSEPORT,
 #else
                                         SO_REUSEADDR,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]