From c8d0470bb0888bcb6719ba536e5f3f6a8b6551bb Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 10 Jul 2023 19:18:48 +0900 Subject: Use `File::NULL` instead of hard coded null device names --- ext/extmk.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ext/extmk.rb') diff --git a/ext/extmk.rb b/ext/extmk.rb index d6a4b80bf7..428ffc91a6 100755 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -43,11 +43,7 @@ $" << "mkmf.rb" load File.expand_path("lib/mkmf.rb", srcdir) require 'optparse/shellwords' -if defined?(File::NULL) - @null = File::NULL -elsif !File.chardev?(@null = "/dev/null") - @null = "nul" -end +@null = File::NULL def verbose? $mflags.defined?("V") == "1" -- cgit v1.2.3