summaryrefslogtreecommitdiff
path: root/ext/pty/extconf.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-17 10:38:19 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-17 10:38:19 +0000
commit8ae0a40d029efe557a6f6b7907b98b12dccaab6b (patch)
tree0b31b0466f5224aafe47b2b43d7b7b1b27ccc1fd /ext/pty/extconf.rb
parent67d18f7ff78aa9da418f5b958e998807c15b7925 (diff)
* ext/pty/extconf.rb: check util.h for OpenBSD.
* ext/pty/pty.c: include util.h if available. fix variable name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/pty/extconf.rb')
-rw-r--r--ext/pty/extconf.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pty/extconf.rb b/ext/pty/extconf.rb
index b26600a..3d6d0f1 100644
--- a/ext/pty/extconf.rb
+++ b/ext/pty/extconf.rb
@@ -4,6 +4,7 @@ if /mswin|mingw|bccwin/ !~ RUBY_PLATFORM
have_header("sys/stropts.h")
have_func("setresuid")
have_header("libutil.h")
+ have_header("util.h") # OpenBSD openpty
have_header("pty.h")
have_library("util", "openpty")
if have_func("posix_openpt") or