diff options
Diffstat (limited to 'ext/pty/extconf.rb')
-rw-r--r-- | ext/pty/extconf.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/pty/extconf.rb b/ext/pty/extconf.rb new file mode 100644 index 0000000000..63383f7faf --- /dev/null +++ b/ext/pty/extconf.rb @@ -0,0 +1,10 @@ +require 'mkmf' + +have_header("sys/stropts.h") +have_func("setresuid") +$CFLAGS << "-DHAVE_DEV_PTMX" if /cygwin/ === PLATFORM +if have_func("openpty") or + have_func("_getpty") or + have_func("ioctl") + create_makefile('pty') +end |