ruby-changes:32599
From: akr <ko1@a...>
Date: Tue, 21 Jan 2014 22:39:12 +0900 (JST)
Subject: [ruby-changes:32599] akr:r44678 (trunk): Several more OS information for TYPE_IP_MULTICAST_LOOP and
akr 2014-01-21 22:39:08 +0900 (Tue, 21 Jan 2014) New Revision: 44678 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44678 Log: Several more OS information for TYPE_IP_MULTICAST_LOOP and TYPE_IP_MULTICAST_TTL. Modified files: trunk/ext/socket/option.c Index: ext/socket/option.c =================================================================== --- ext/socket/option.c (revision 44677) +++ ext/socket/option.c (revision 44678) @@ -7,10 +7,21 @@ 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__) || defined(_WIN32) +#if defined(__linux__) || \ + defined(__GNU__) /* GNU/Hurd */ || \ + defined(__FreeBSD__) || \ + defined(__DragonFly__) || \ + defined(__APPLE__) || \ + defined(_WIN32) || \ + defined(__CYGWIN__) # define TYPE_IP_MULTICAST_LOOP int # define TYPE_IP_MULTICAST_TTL int #else +/* The original IP multicast implementation by Steve Deering + * NetBSD + * OpenBSD + * SunOS + */ # define TYPE_IP_MULTICAST_LOOP byte # define TYPE_IP_MULTICAST_TTL byte # define USE_INSPECT_BYTE 1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/