summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ext/io/wait/extconf.rb24
2 files changed, 9 insertions, 20 deletions
diff --git a/ChangeLog b/ChangeLog
index d32d7ee74f..5ed441582a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Jul 24 11:21:10 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
+
+ * ext/io/wait/extconf.rb: removed unnecessary backward
+ compatibility stuff.
+
Thu Jul 24 11:09:10 2003 WATANABE Hirofumi <eban@ruby-lang.org>
* ext/openssl/extconf.rb: revert use of dir_config.
diff --git a/ext/io/wait/extconf.rb b/ext/io/wait/extconf.rb
index 0c1a870474..a766ccbe6f 100644
--- a/ext/io/wait/extconf.rb
+++ b/ext/io/wait/extconf.rb
@@ -1,28 +1,12 @@
require 'mkmf'
target = "io/wait"
-unless defined?(checking_for)
- def checking_for(msg)
- STDOUT.print "checking for ", msg, "..."
- STDOUT.flush
- STDOUT.puts((r = yield) ? "yes" : "no")
- r
- end
-end
-unless defined?(macro_defined?)
- def macro_defined?(macro, src, opt="")
- try_cpp(src + <<"SRC", opt)
-#ifndef #{macro}
-# error
-#endif
-SRC
- end
-end
unless /djgpp|mswin|mingw|human/ =~ RUBY_PLATFORM
fionread = %w[sys/ioctl.h sys/filio.h].find do |h|
checking_for("FIONREAD") {macro_defined?("FIONREAD", "#include <#{h}>\n")}
end
- exit 1 unless fionread
- $defs << "-DFIONREAD_HEADER=\"<#{fionread}>\""
- create_makefile(target)
+ if fionread
+ $defs << "-DFIONREAD_HEADER=\"<#{fionread}>\""
+ create_makefile(target)
+ end
end