summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--ext/socket/mkconstants.rb6
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index cb34515..a32a762 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sat Jan 17 14:52:27 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: don't cause an error for duplicate names.
+
Sat Jan 17 12:46:17 2009 Tanaka Akira <akr@fsij.org>
* ext/socket: split files for each class.
diff --git a/ext/socket/mkconstants.rb b/ext/socket/mkconstants.rb
index eca7fe6..ec2519d 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