diff options
author | Thomas White <taw@physics.org> | 2018-06-14 15:23:13 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-06-14 17:15:01 +0200 |
commit | 746cc0c5ff9c60a14933bb62eb761bea4d223343 (patch) | |
tree | 61ba1a40362c4d8132e5f19803fbcdbd48a8812a /libcrystfel/src/xds.c | |
parent | ed31303341ad073c4ed3468fb97f236d8b0d01ab (diff) |
Add CMake check to find forkpty()
Diffstat (limited to 'libcrystfel/src/xds.c')
-rw-r--r-- | libcrystfel/src/xds.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libcrystfel/src/xds.c b/libcrystfel/src/xds.c index b28dc93a..01c12dca 100644 --- a/libcrystfel/src/xds.c +++ b/libcrystfel/src/xds.c @@ -36,7 +36,6 @@ #include <stdlib.h> #include <stdio.h> #include <math.h> -#include <pty.h> #include <string.h> #include <unistd.h> #include <sys/wait.h> @@ -45,6 +44,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 "xds.h" #include "cell.h" #include "image.h" |