Permalink
Browse files

Fixes for compiling pty C-ext on linux.

  • Loading branch information...
1 parent 5b0e570 commit 9bb0a659d6d1c58140b9e5bb614a4047d946c1c6 @brixen brixen committed Aug 25, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 lib/19/pty/ext/extconf.rb
  2. +1 −1 lib/19/pty/ext/pty.c
@@ -5,6 +5,7 @@
have_header("sys/wait.h")
have_func("setresuid")
have_header("libutil.h")
+ have_header("unistd.h")
have_header("pty.h")
have_library("util", "openpty")
if have_func("openpty") or
View
@@ -44,7 +44,7 @@
#include <unistd.h>
#endif
-#ifdef HAVE_OPENPTY
+#if defined(HAVE_OPENPTY) && !defined(HAVE_PTY_H)
/* Normally, the following header would be used:
* #include <util.h>
*

0 comments on commit 9bb0a65

Please sign in to comment.