udpsrc: Fix compilation on NetBSD
authorThomas Klausner <tk@giga.or.at>
Mon, 12 Sep 2016 09:02:00 +0000 (09:02 +0000)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 12 Sep 2016 13:09:26 +0000 (15:09 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=771278

gst/udp/gstudpsrc.c

index dcd99ba..d60a014 100644 (file)
@@ -158,8 +158,10 @@ struct _GstIPPktinfoMessage
 
   guint ifindex;
 #ifndef G_OS_WIN32
+#ifndef __NetBSD__
   struct in_addr spec_dst;
 #endif
+#endif
   struct in_addr addr;
 };
 
@@ -202,8 +204,10 @@ gst_ip_pktinfo_message_deserialize (gint level,
   message = g_object_new (GST_TYPE_IP_PKTINFO_MESSAGE, NULL);
   message->ifindex = pktinfo->ipi_ifindex;
 #ifndef G_OS_WIN32
+#ifndef __NetBSD__
   message->spec_dst = pktinfo->ipi_spec_dst;
 #endif
+#endif
   message->addr = pktinfo->ipi_addr;
 
   return G_SOCKET_CONTROL_MESSAGE (message);