Commit 5ccbcfde authored by Stefan Leichter's avatar Stefan Leichter Committed by Alexandre Julliard

ws2_32: In setsockopt implement IPV6_ADD_MEMBERSHIP and IPV6_DROP_MEMBERSHIP only when supported.

parent 4d3e6f4c
...@@ -3524,8 +3524,12 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname, ...@@ -3524,8 +3524,12 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
case WS_IPPROTO_IPV6: case WS_IPPROTO_IPV6:
switch(optname) switch(optname)
{ {
#ifdef IPV6_ADD_MEMBERSHIP
case WS_IPV6_ADD_MEMBERSHIP: case WS_IPV6_ADD_MEMBERSHIP:
#endif
#ifdef IPV6_DROP_MEMBERSHIP
case WS_IPV6_DROP_MEMBERSHIP: case WS_IPV6_DROP_MEMBERSHIP:
#endif
case WS_IPV6_MULTICAST_IF: case WS_IPV6_MULTICAST_IF:
case WS_IPV6_MULTICAST_HOPS: case WS_IPV6_MULTICAST_HOPS:
case WS_IPV6_MULTICAST_LOOP: case WS_IPV6_MULTICAST_LOOP:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment