]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
timers.h: add declaration for timeval.
authorNick Mathewson <nickm@torproject.org>
Mon, 16 Dec 2019 18:11:06 +0000 (13:11 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 9 Jan 2020 12:30:35 +0000 (07:30 -0500)
This frees us from some dependencies on include order.

src/lib/evloop/timers.h

index 759555420480974eb09c406fff39f3beae7c7e17..f317d0ad0e83768174c61c9d936be0a5936b894d 100644 (file)
@@ -13,6 +13,7 @@
 #include "lib/testsupport/testsupport.h"
 
 struct monotime_t;
+struct timeval;
 typedef struct timeout tor_timer_t;
 typedef void (*timer_cb_fn_t)(tor_timer_t *, void *,
                               const struct monotime_t *);