diff options
author | Thomas White <taw@physics.org> | 2010-03-05 10:32:35 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-03-05 10:34:14 +0100 |
commit | daac7b3b2aae9895e6fd46588739b992655c66f5 (patch) | |
tree | 339201d6e98d631caa0edf166c6c3e42596228da /src | |
parent | d8358c2158154ed14af37edb46b44f6c7b9feebb (diff) |
forkpty() compatibility
Diffstat (limited to 'src')
-rw-r--r-- | src/dirax.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/dirax.c b/src/dirax.c index 893b21fb..7b1322f2 100644 --- a/src/dirax.c +++ b/src/dirax.c @@ -19,14 +19,17 @@ #include <stdio.h> #include <math.h> #include <string.h> -#include <pty.h> #include <unistd.h> #include <sys/wait.h> #include <fcntl.h> #include <assert.h> #include <sys/ioctl.h> -#include <termio.h> -#include <sgtty.h> + +#if HAVE_FORKPTY_LINUX +#include <pty.h> +#elif HAVE_FORKPTY_BSD +#include <util.h> +#endif #include "image.h" |