aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/mosflm.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/mosflm.c
parented31303341ad073c4ed3468fb97f236d8b0d01ab (diff)
Add CMake check to find forkpty()
Diffstat (limited to 'libcrystfel/src/mosflm.c')
-rw-r--r--libcrystfel/src/mosflm.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libcrystfel/src/mosflm.c b/libcrystfel/src/mosflm.c
index d1b7ffed..7b0159ab 100644
--- a/libcrystfel/src/mosflm.c
+++ b/libcrystfel/src/mosflm.c
@@ -62,7 +62,6 @@
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
-#include <pty.h>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
@@ -71,6 +70,13 @@
#include <fcntl.h>
#include <errno.h>
+#ifdef HAVE_FORKPTY_PTY_H
+#include <pty.h>
+#endif
+#ifdef HAVE_FORKPTY_UTIL_H
+#include <util.h>
+#endif
+
#ifdef HAVE_CLOCK_GETTIME
#include <time.h>
#else