ruby-changes:32589
From: akr <ko1@a...>
Date: Tue, 21 Jan 2014 04:35:15 +0900 (JST)
Subject: [ruby-changes:32589] akr:r44668 (trunk): * ext/socket/option.c: Use "int" for IP_MULTICAST_LOOP and
akr 2014-01-21 04:35:11 +0900 (Tue, 21 Jan 2014) New Revision: 44668 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44668 Log: * ext/socket/option.c: Use "int" for IP_MULTICAST_LOOP and IP_MULTICAST_TTL on Windows. Modified files: trunk/ChangeLog trunk/ext/socket/option.c Index: ChangeLog =================================================================== --- ChangeLog (revision 44667) +++ ChangeLog (revision 44668) @@ -1,7 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 -Tue Jan 21 04:27:30 2014 Tanaka Akira <akr@f...> +Tue Jan 21 04:31:23 2014 Tanaka Akira <akr@f...> * ext/socket/option.c: Use "int" for IP_MULTICAST_LOOP and - IP_MULTICAST_TTL on Mac OS X. + IP_MULTICAST_TTL on Mac OS X and Windows. Tue Jan 21 00:39:15 2014 Tanaka Akira <akr@f...> Index: ext/socket/option.c =================================================================== --- ext/socket/option.c (revision 44667) +++ ext/socket/option.c (revision 44668) @@ -7,7 +7,7 @@ VALUE rb_cSockOpt; https://github.com/ruby/ruby/blob/trunk/ext/socket/option.c#L7 #define CAT(x,y) x##y #define XCAT(x,y) CAT(x,y) -#if defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__) +#if defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__) || defined(_WIN32) # define TYPE_IP_MULTICAST_LOOP int # define TYPE_IP_MULTICAST_TTL int #else -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/