aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/dirax.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-06-14 15:23:13 +0200
committerThomas White <taw@physics.org>2018-06-14 17:15:01 +0200
commit746cc0c5ff9c60a14933bb62eb761bea4d223343 (patch)
tree61ba1a40362c4d8132e5f19803fbcdbd48a8812a /libcrystfel/src/dirax.c
parented31303341ad073c4ed3468fb97f236d8b0d01ab (diff)
Add CMake check to find forkpty()
Diffstat (limited to 'libcrystfel/src/dirax.c')
-rw-r--r--libcrystfel/src/dirax.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libcrystfel/src/dirax.c b/libcrystfel/src/dirax.c
index 885afb97..0f5b5741 100644
--- a/libcrystfel/src/dirax.c
+++ b/libcrystfel/src/dirax.c
@@ -34,7 +34,6 @@
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
-#include <pty.h>
#include <string.h>
#include <unistd.h>
#include <sys/wait.h>
@@ -43,6 +42,13 @@
#include <sys/ioctl.h>
#include <errno.h>
+#ifdef HAVE_FORKPTY_PTY_H
+#include <pty.h>
+#endif
+#ifdef HAVE_FORKPTY_UTIL_H
+#include <util.h>
+#endif
+
#include "image.h"
#include "dirax.h"
#include "utils.h"