[gssdp] Use SO_REUSEPORT on NetBSD as well
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp] Use SO_REUSEPORT on NetBSD as well
- Date: Fri, 30 Nov 2012 12:56:42 +0000 (UTC)
commit bc3e87b01bf90d10845dc3146404c5fbe20f1f78
Author: Matthias Drochner <M Drochner fz-juelich de>
Date: Fri Nov 30 13:56:03 2012 +0100
Use SO_REUSEPORT on NetBSD as well
Fixes:
https://bugzilla.gnome.org/show_bug.cgi?id=685949
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 2481fe2..8f4ea36 100644
--- a/libgssdp/gssdp-socket-functions.c
+++ b/libgssdp/gssdp-socket-functions.c
@@ -157,10 +157,10 @@ gboolean
gssdp_socket_reuse_address (GSocket *socket,
gboolean enable,
GError **error) {
-#if defined(G_OS_WIN32) || defined(__OpenBSD__)
+#if defined(G_OS_WIN32) || defined(__OpenBSD__) || defined(__NetBSD__)
return gssdp_socket_option_set (socket,
SOL_SOCKET,
-#if defined(__OpenBSD__)
+#if defined(__OpenBSD__) || defined (__NetBSD__)
SO_REUSEPORT,
#else
SO_REUSEADDR,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]