diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-17 05:53:05 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-17 05:53:05 +0000 |
commit | 32bbcc6d526aafb1d9a540ef6f6bc30af719c267 (patch) | |
tree | 0e6d92a7d1ea1a67fe239a7cd54c28468b76c0d9 /ext/socket | |
parent | 3f9d4f1fbd1cfd5d10f454d9036fa71f4577b819 (diff) | |
download | ruby-32bbcc6d526aafb1d9a540ef6f6bc30af719c267.tar.gz |
* ext/socket/mkconstants.rb: don't cause an error for duplicate names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket')
-rw-r--r-- | ext/socket/mkconstants.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/socket/mkconstants.rb b/ext/socket/mkconstants.rb index eca7fe6b88..ec2519d30d 100644 --- a/ext/socket/mkconstants.rb +++ b/ext/socket/mkconstants.rb @@ -38,7 +38,10 @@ h = {} DATA.each_line {|s| name, default_value = s.scan(/\S+/) next unless name && name[0] != ?# - raise "duplicate name: #{name}" if h.has_key? name + if h.has_key? name + warn "#{$.}: warning: duplicate name: #{name}" + next + end h[name] = default_value } DEFS = h.to_a @@ -465,6 +468,7 @@ SO_ATTACH_FILTER SO_DETACH_FILTER SO_PEERNAME SO_TIMESTAMP +SO_BINTIME SOPRI_INTERACTIVE SOPRI_NORMAL |