$NetBSD: patch-aa,v 1.4 2012/10/10 15:23:39 drochner Exp $

--- libgssdp/gssdp-socket-functions.c.orig	2011-11-29 12:07:01.000000000 +0000
+++ 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,
