diff --git a/ChangeLog b/ChangeLog index edde2f3d..431339bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,8 @@ Changes in 2.0.2-alpha: o Avoid data corruption when reading data entirely into the second-to-last chain of an evbuffer. [Bug report from Victor Goya] o Make sendfile work on FreeBSD o Do not use vararg macros for accessing evrpc structures; this is not backwards compatible, but we did not promise any backwards compatibility for the rpc code. + o Actually define the event_config_set_flag() function. + Changes in 2.0.1-alpha: o free minheap on event_base_free(); from Christopher Layne diff --git a/event.c b/event.c index f15b3b24..bd2044fd 100644 --- a/event.c +++ b/event.c @@ -509,6 +509,17 @@ event_config_free(struct event_config *cfg) mm_free(cfg); } + +int +event_config_set_flag(struct event_config *cfg, + enum event_base_config_flag flag) +{ + if (!cfg) + return -1; + cfg->flags |= flag; + return 0; +} + int event_config_avoid_method(struct event_config *cfg, const char *method) {