aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/dirax.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-08-18 14:28:31 +0200
committerThomas White <taw@physics.org>2014-08-18 14:38:50 +0200
commit8e770f218c07cd71c3ba7262348c76ced477ba5b (patch)
treeebf9c4262e196297c64b5ecceb4101ec06dfebb1 /libcrystfel/src/dirax.c
parent30e5adcee376d20ae9cc622d2cf3675b3fac3c5b (diff)
gettimeofday() fixes
Diffstat (limited to 'libcrystfel/src/dirax.c')
-rw-r--r--libcrystfel/src/dirax.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcrystfel/src/dirax.c b/libcrystfel/src/dirax.c
index ac12b57d..3ab592b6 100644
--- a/libcrystfel/src/dirax.c
+++ b/libcrystfel/src/dirax.c
@@ -42,6 +42,12 @@
#include <sys/ioctl.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