aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 89169da10..4b407d705 100644
--- a/src/main.h
+++ b/src/main.h
@@ -221,7 +221,11 @@ struct worker_task {
char *last_error; /**< last error */
int error_code; /**< code of last error */
memory_pool_t *task_pool; /**< memory pool for task */
+#ifdef HAVE_CLOCK_GETTIME
struct timespec ts; /**< time of connection */
+#else
+ struct timeval tv; /**< time of connection */
+#endif
struct rspamd_view *view; /**< matching view */
gboolean view_checked;
gboolean pass_all_filters; /**< pass task throught every rule */