summaryrefslogtreecommitdiffstats
path: root/package/libnice/0001-build-IPV6_RECVERR.patch
blob: af55bb9d9df083384c4afd6b058be9c3bca9c110 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Make libnice build in non-IPv6 configurations

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Index: b/stun/usages/bind.c
===================================================================
--- a/stun/usages/bind.c
+++ b/stun/usages/bind.c
@@ -260,9 +260,11 @@
       case AF_INET:
         setsockopt (fd, SOL_IP, IP_RECVERR, &yes, sizeof (yes));
         break;
+#ifdef IPV6_RECVERR
       case AF_INET6:
         setsockopt (fd, SOL_IPV6, IPV6_RECVERR, &yes, sizeof (yes));
         break;
+#endif
       default:
         /* Nothing to do. */
         break;
OpenPOWER on IntegriCloud