summaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-09-13 14:13:30 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-09-13 14:13:30 +0100
commitac2ee05594e41cdfe1e1d4efdeade3a028376e1e (patch)
tree8904ccae11ec7c46d851731e722d39a232ef48a4 /src/libserver
parent1adcfb1e23467b797c55a01a1da5766fdb0876e0 (diff)
downloadrspamd-ac2ee05594e41cdfe1e1d4efdeade3a028376e1e.tar.gz
rspamd-ac2ee05594e41cdfe1e1d4efdeade3a028376e1e.zip
[Fix] Do not pollute public headers with libev internals
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/dns.c1
-rw-r--r--src/libserver/dns.h9
2 files changed, 6 insertions, 4 deletions
diff --git a/src/libserver/dns.c b/src/libserver/dns.c
index abe47dfdc..be2d5a3dd 100644
--- a/src/libserver/dns.c
+++ b/src/libserver/dns.c
@@ -20,6 +20,7 @@
#include "dns.h"
#include "rspamd.h"
#include "utlist.h"
+#include "contrib/libev/ev.h"
#include "contrib/librdns/rdns.h"
#include "contrib/librdns/dns_private.h"
#include "contrib/librdns/rdns_ev.h"
diff --git a/src/libserver/dns.h b/src/libserver/dns.h
index d6977d0c0..acf8d0908 100644
--- a/src/libserver/dns.h
+++ b/src/libserver/dns.h
@@ -1,11 +1,11 @@
-/*-
- * Copyright 2016 Vsevolod Stakhov
+/*
+ * Copyright 2023 Vsevolod Stakhov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -31,13 +31,14 @@ extern "C" {
struct rspamd_config;
struct rspamd_task;
+struct event_loop;
struct rspamd_dns_resolver {
struct rdns_resolver *r;
struct ev_loop *event_loop;
rspamd_lru_hash_t *fails_cache;
void *uidna;
- ev_tstamp fails_cache_time;
+ double fails_cache_time;
struct upstream_list *ups;
struct rspamd_config *cfg;
gdouble request_timeout;