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/felix.c | |
parent | ed31303341ad073c4ed3468fb97f236d8b0d01ab (diff) |
Add CMake check to find forkpty()
Diffstat (limited to 'libcrystfel/src/felix.c')
-rw-r--r-- | libcrystfel/src/felix.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libcrystfel/src/felix.c b/libcrystfel/src/felix.c index db473d73..c7ff2d01 100644 --- a/libcrystfel/src/felix.c +++ b/libcrystfel/src/felix.c @@ -35,7 +35,6 @@ #include <stdlib.h> #include <stdio.h> #include <math.h> -#include <pty.h> #include <string.h> #include <sys/types.h> #include <sys/wait.h> @@ -50,6 +49,12 @@ #include <sys/time.h> #endif +#ifdef HAVE_FORKPTY_PTY_H +#include <pty.h> +#endif +#ifdef HAVE_FORKPTY_UTIL_H +#include <util.h> +#endif #include "image.h" #include "utils.h" |