aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-06 13:35:14 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-06 13:35:14 +0100
commit915a460b6a425cc5694f4166c86ee8138ffd0ace (patch)
tree9bb4d5be1cdbc13522241a1035367ab58298b001 /src/libutil/util.h
parent619fdbc7b82eea8f7b4f38fa9f29c02802619727 (diff)
downloadrspamd-915a460b6a425cc5694f4166c86ee8138ffd0ace.tar.gz
rspamd-915a460b6a425cc5694f4166c86ee8138ffd0ace.zip
[Minor] Fix event pending checks
Diffstat (limited to 'src/libutil/util.h')
-rw-r--r--src/libutil/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libutil/util.h b/src/libutil/util.h
index 4338d5557..875388432 100644
--- a/src/libutil/util.h
+++ b/src/libutil/util.h
@@ -429,6 +429,9 @@ struct event_base * event_get_base (struct event *ev);
event_set((ev), (x), EV_SIGNAL|EV_PERSIST, (cb), (arg))
#endif
+/* Avoid stupidity in libevent > 1.4 */
+int rspamd_event_pending (struct event *ev, short what);
+
/**
* Open file without following symlinks or special stuff
* @param fname filename