]> git.lizzy.rs Git - rust.git/commitdiff
Fixes `join_multicast` on Windows #20381
authorDaniil Smirnov <danslapman@gmail.com>
Fri, 16 Jan 2015 22:37:07 +0000 (01:37 +0300)
committerDaniil Smirnov <danslapman@gmail.com>
Fri, 16 Jan 2015 22:37:07 +0000 (01:37 +0300)
src/liblibc/lib.rs

index deab0cabfbe5195bfce29fbb75be076cdb0b4c55..7be2178c9b2d0e0fa201166bd4aa33bbb028a821 100644 (file)
@@ -2206,10 +2206,10 @@ pub mod bsd44 {
             pub const IPPROTO_TCP: c_int = 6;
             pub const IPPROTO_IP: c_int = 0;
             pub const IPPROTO_IPV6: c_int = 41;
-            pub const IP_MULTICAST_TTL: c_int = 3;
-            pub const IP_MULTICAST_LOOP: c_int = 4;
-            pub const IP_ADD_MEMBERSHIP: c_int = 5;
-            pub const IP_DROP_MEMBERSHIP: c_int = 6;
+            pub const IP_MULTICAST_TTL: c_int = 10;
+            pub const IP_MULTICAST_LOOP: c_int = 11;
+            pub const IP_ADD_MEMBERSHIP: c_int = 12;
+            pub const IP_DROP_MEMBERSHIP: c_int = 13;
             pub const IPV6_ADD_MEMBERSHIP: c_int = 5;
             pub const IPV6_DROP_MEMBERSHIP: c_int = 6;
             pub const IP_TTL: c_int = 4;