udpsrc: Fix compilation on NetBSD

https://bugzilla.gnome.org/show_bug.cgi?id=771278
This commit is contained in:
Thomas Klausner 2016-09-12 09:02:00 +00:00 committed by Sebastian Dröge
parent d1bde7699d
commit 22d6c7f106

View file

@ -158,7 +158,9 @@ struct _GstIPPktinfoMessage
guint ifindex;
#ifndef G_OS_WIN32
#ifndef __NetBSD__
struct in_addr spec_dst;
#endif
#endif
struct in_addr addr;
};
@ -202,7 +204,9 @@ 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;