diff --git a/ext/io/nonblock/extconf.rb b/ext/io/nonblock/extconf.rb index 5321593278..a1e6075c9b 100644 --- a/ext/io/nonblock/extconf.rb +++ b/ext/io/nonblock/extconf.rb @@ -2,6 +2,11 @@ require 'mkmf' target = "io/nonblock" +unless RUBY_ENGINE == 'ruby' + File.write("Makefile", dummy_makefile($srcdir).join("")) + return +end + have_func("rb_io_descriptor") hdr = %w"fcntl.h"