diff options
author | Thomas White <taw@physics.org> | 2014-08-18 14:28:31 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-08-18 14:38:50 +0200 |
commit | 8e770f218c07cd71c3ba7262348c76ced477ba5b (patch) | |
tree | ebf9c4262e196297c64b5ecceb4101ec06dfebb1 /libcrystfel/src/mosflm.c | |
parent | 30e5adcee376d20ae9cc622d2cf3675b3fac3c5b (diff) |
gettimeofday() fixes
Diffstat (limited to 'libcrystfel/src/mosflm.c')
-rw-r--r-- | libcrystfel/src/mosflm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libcrystfel/src/mosflm.c b/libcrystfel/src/mosflm.c index 95b868bc..970e2fbd 100644 --- a/libcrystfel/src/mosflm.c +++ b/libcrystfel/src/mosflm.c @@ -69,6 +69,12 @@ #include <fcntl.h> #include <errno.h> +#ifdef HAVE_CLOCK_GETTIME +#include <time.h> +#else +#include <sys/time.h> +#endif + #if HAVE_FORKPTY_LINUX #include <pty.h> #elif HAVE_FORKPTY_BSD |