Skip to content

Commit

Permalink
Fixes for compiling pty C-ext on linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Aug 25, 2012
1 parent 5b0e570 commit 9bb0a65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/19/pty/ext/extconf.rb
Expand Up @@ -5,6 +5,7 @@
have_header("sys/wait.h") have_header("sys/wait.h")
have_func("setresuid") have_func("setresuid")
have_header("libutil.h") have_header("libutil.h")
have_header("unistd.h")
have_header("pty.h") have_header("pty.h")
have_library("util", "openpty") have_library("util", "openpty")
if have_func("openpty") or if have_func("openpty") or
Expand Down
2 changes: 1 addition & 1 deletion lib/19/pty/ext/pty.c
Expand Up @@ -44,7 +44,7 @@
#include <unistd.h> #include <unistd.h>
#endif #endif


#ifdef HAVE_OPENPTY #if defined(HAVE_OPENPTY) && !defined(HAVE_PTY_H)
/* Normally, the following header would be used: /* Normally, the following header would be used:
* #include <util.h> * #include <util.h>
* *
Expand Down

0 comments on commit 9bb0a65

Please sign in to comment.