summaryrefslogtreecommitdiff
path: root/stun
diff options
context:
space:
mode:
authorYouness Alaoui <youness.alaoui@collabora.co.uk>2011-01-17 20:45:48 -0500
committerYouness Alaoui <youness.alaoui@collabora.co.uk>2011-01-17 20:45:48 -0500
commitfa68cdd42e9e69010dd7cb874e7edba7369c06c0 (patch)
treeab913e70177bd22f8b0620c4dfc0fe647b42ea6b /stun
parentdf0ca1eda179ad358db06bf8f29635610d91d594 (diff)
downloadlibnice-fa68cdd42e9e69010dd7cb874e7edba7369c06c0.tar.gz
define SOL_IPV6 to IPPROTO_IPV6 if not defined
Diffstat (limited to 'stun')
-rw-r--r--stun/tools/stund.c4
-rw-r--r--stun/usages/bind.c7
2 files changed, 11 insertions, 0 deletions
diff --git a/stun/tools/stund.c b/stun/tools/stund.c
index 673fccc1..f0978f3 100644
--- a/stun/tools/stund.c
+++ b/stun/tools/stund.c
@@ -61,9 +61,13 @@
#ifndef SOL_IP
# define SOL_IP IPPROTO_IP
+#endif
+
+#ifndef SOL_IPV6
# define SOL_IPV6 IPPROTO_IPV6
#endif
+
#ifndef IPV6_RECVPKTINFO
# define IPV6_RECVPKTINFO IPV6_PKTINFO
#endif
diff --git a/stun/usages/bind.c b/stun/usages/bind.c
index ba0b6fb..fc9ed51 100644
--- a/stun/usages/bind.c
+++ b/stun/usages/bind.c
@@ -74,6 +74,13 @@
#include "timer.h"
+#ifndef SOL_IP
+# define SOL_IP IPPROTO_IP
+#endif
+
+#ifndef SOL_IPV6
+# define SOL_IPV6 IPPROTO_IPV6
+#endif
/** Non-blocking mode STUN binding discovery */