mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
Unbreak the build on libevent 1.x systems
This commit is contained in:
parent
b80a8bba19
commit
6cac100b13
1 changed files with 5 additions and 1 deletions
|
@ -152,7 +152,11 @@ tor_validate_process_specifier(const char *process_spec,
|
||||||
#define PERIODIC_TIMER_FLAGS (0)
|
#define PERIODIC_TIMER_FLAGS (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const struct timeval poll_interval_tv = {15, 0};
|
static struct timeval poll_interval_tv = {15, 0};
|
||||||
|
/* Note: If you port this file to plain Libevent 2, you can make
|
||||||
|
* poll_interval_tv const. It has to be non-const here because in
|
||||||
|
* libevent 1.x, event_add expects a pointer to a non-const struct
|
||||||
|
* timeval. */
|
||||||
|
|
||||||
/** Create a process-termination monitor for the process specifier
|
/** Create a process-termination monitor for the process specifier
|
||||||
* given in <b>process_spec</b>. Return a newly allocated
|
* given in <b>process_spec</b>. Return a newly allocated
|
||||||
|
|
Loading…
Add table
Reference in a new issue