diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-04 00:27:43 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-04 00:27:43 +0000 |
commit | 9ac683818301ea2cdf089b0154f7b4f7c2b1c11d (patch) | |
tree | 574bc68089d1105c1cc48922ad8b5fb03d973d35 /ext/socket/mkconstants.rb | |
parent | d51c5a137ff595cd5f5a344853df81589af63fe0 (diff) | |
download | ruby-9ac683818301ea2cdf089b0154f7b4f7c2b1c11d.tar.gz |
* ext/socket/socket.c (constant_arg): constified.
* ext/socket/socket.c (optname_arg): cygwin does not have
IPPROTO_IPV6.
* ext/socket/mkconstants.rb (ipv6_optname_to_int): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/mkconstants.rb')
-rw-r--r-- | ext/socket/mkconstants.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/mkconstants.rb b/ext/socket/mkconstants.rb index 9dce82495b..da15fb4c79 100644 --- a/ext/socket/mkconstants.rb +++ b/ext/socket/mkconstants.rb @@ -228,11 +228,13 @@ ip_optname_to_int(char *str, int len, int *valp) <%= gen_name_to_int("str", "len", "valp", /\AIP_/, "IP_") %> } +#ifdef IPPROTO_IPV6 static int ipv6_optname_to_int(char *str, int len, int *valp) { <%= gen_name_to_int("str", "len", "valp", /\AIPV6_/, "IPV6_") %> } +#endif static int tcp_optname_to_int(char *str, int len, int *valp) |