new file mode 100644
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LIBNICE
+ bool "libnice"
+ select BR2_PACKAGE_LIBGLIB2
+ help
+ Adds libnice - The GLib ICE implementation
+ Libnice is an implementation of the IETF's Interactive Connectivity Establishment (ICE) standard (RFC 5245) and the Session Traversal Utilities for NAT (STUN) standard (RFC 5389).
+
+ http://nice.freedesktop.org/wiki/
new file mode 100644
@@ -0,0 +1,20 @@
+diff -rupN libnice-0.1.8.orig/stun/usages/bind.c libnice-0.1.8/stun/usages/bind.c
+--- libnice-0.1.8.orig/stun/usages/bind.c 2014-09-22 18:01:28.000000000 +0100
++++ libnice-0.1.8/stun/usages/bind.c 2014-12-01 13:28:32.144707407 +0000
+@@ -257,12 +257,16 @@ static int stun_socket (int family, int
+ int yes = 1;
+ switch (family)
+ {
++#ifdef IP_RECVERR
+ case AF_INET:
+ setsockopt (fd, SOL_IP, IP_RECVERR, &yes, sizeof (yes));
++#endif
+ break;
++#ifdef IPV6_RECVERR
+ case AF_INET6:
+ setsockopt (fd, SOL_IPV6, IPV6_RECVERR, &yes, sizeof (yes));
+ break;
++#endif
+ default:
+ /* Nothing to do. */
+ break;
new file mode 100644
@@ -0,0 +1,13 @@
+#############################################################
+#
+# libnice
+#
+#############################################################
+LIBNICE_VERSION = 0.1.8
+LIBNICE_SITE = http://nice.freedesktop.org/releases/
+LIBNICE_DEPENDENCIES = libglib2
+LIBNICE_INSTALL_STAGING = YES
+LIBNICE_LICENSE = LGPLv2.1+
+LIBNICE_LICENSE_FILE = COPYING.MPL COPYING.LGPL
+
+$(eval $(autotools-package))