ext/extconf.rb in winsize-1.0.0 vs ext/extconf.rb in winsize-1.0.1
- old
+ new
@@ -1,5 +1,7 @@
require "mkmf"
-abort("ioctl is missing.\n\n") unless have_header("sys/ioctl.h")
+abort "sys/ioctl.h is required" unless have_header("sys/ioctl.h")
+abort "TIOCGWINSZ is required" unless have_const("TIOCGWINSZ", "sys/ioctl.h")
+abort "TIOCSWINSZ is required" unless have_const("TIOCSWINSZ", "sys/ioctl.h")
-create_makefile("winsize")
+create_makefile "winsize"