aboutsummaryrefslogtreecommitdiff
path: root/src/dirax.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dirax.c')
-rw-r--r--src/dirax.c9
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"