summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-05-07 06:55:42 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-05-07 06:55:42 +0000
commit55de9446a90c20e11d356e507ac0c77f2b7e490d (patch)
tree45d6abf3b6ba4afa1e483eca8ccc03ef39a7e3fe /ext
parent1a4f8093f01c399da2adca3e0bba7ec1aea58b9b (diff)
revert
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/pty/extconf.rb3
-rw-r--r--ext/pty/pty.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/ext/pty/extconf.rb b/ext/pty/extconf.rb
index 2696ae0d3b..ba2b44c70b 100644
--- a/ext/pty/extconf.rb
+++ b/ext/pty/extconf.rb
@@ -3,10 +3,9 @@ require 'mkmf'
if /mswin32|mingw/ !~ RUBY_PLATFORM
have_header("sys/stropts.h")
have_func("setresuid")
-# $CFLAGS << "-DHAVE_DEV_PTMX" if /cygwin/ === RUBY_PLATFORM
+ $CFLAGS << "-DHAVE_DEV_PTMX" if /cygwin/ === RUBY_PLATFORM
if have_func("openpty") or
have_func("_getpty") or
- have_func("ptsname") or
have_func("ioctl")
create_makefile('pty')
end
diff --git a/ext/pty/pty.c b/ext/pty/pty.c
index d71970eb66..35e4080e62 100644
--- a/ext/pty/pty.c
+++ b/ext/pty/pty.c
@@ -359,7 +359,7 @@ getDevice(master,slave)
int i,j;
char MasterName[DEVICELEN];
-#ifdef HAVE_PTSNAME
+#ifdef HAVE_DEV_PTMX
char *pn;
void (*s)();