diff options
author | Pascal Stumpf <pascal@cvs.openbsd.org> | 2012-08-28 09:09:57 +0000 |
---|---|---|
committer | Pascal Stumpf <pascal@cvs.openbsd.org> | 2012-08-28 09:09:57 +0000 |
commit | 5cd5794b070c1d3e34441c54d10bf4ce4a0d2695 (patch) | |
tree | 468935be5e47445001c88a42033d9f415f27058e /lib/libevent | |
parent | 4c7d1ace0330b12a74d330097c24e7b55047e9e2 (diff) |
Expose _EVENT_VERSION in event.h. This is expected by net/tor, which will spew
out scary warnings if it's not there. Bump minor accordingly.
Requested by and ok dcoppa@, ok nicm@
Diffstat (limited to 'lib/libevent')
-rw-r--r-- | lib/libevent/event.c | 4 | ||||
-rw-r--r-- | lib/libevent/event.h | 4 | ||||
-rw-r--r-- | lib/libevent/shlib_version | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/lib/libevent/event.c b/lib/libevent/event.c index 81f8a97a8f4..d1618c9d0b1 100644 --- a/lib/libevent/event.c +++ b/lib/libevent/event.c @@ -1,4 +1,4 @@ -/* $OpenBSD: event.c,v 1.25 2010/08/30 07:54:29 nicm Exp $ */ +/* $OpenBSD: event.c,v 1.26 2012/08/28 09:09:56 pascal Exp $ */ /* * Copyright (c) 2000-2004 Niels Provos <provos@citi.umich.edu> @@ -1020,7 +1020,7 @@ event_queue_insert(struct event_base *base, struct event *ev, int queue) const char * event_get_version(void) { - return ("1.4.14b-stable"); + return (_EVENT_VERSION); } /* diff --git a/lib/libevent/event.h b/lib/libevent/event.h index 275da704360..adc2e26f0a3 100644 --- a/lib/libevent/event.h +++ b/lib/libevent/event.h @@ -1,4 +1,4 @@ -/* $OpenBSD: event.h,v 1.24 2011/07/07 14:25:15 sobrado Exp $ */ +/* $OpenBSD: event.h,v 1.25 2012/08/28 09:09:56 pascal Exp $ */ /* * Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu> @@ -1187,6 +1187,8 @@ int evtag_unmarshal_string(struct evbuffer *evbuf, ev_uint32_t need_tag, int evtag_unmarshal_timeval(struct evbuffer *evbuf, ev_uint32_t need_tag, struct timeval *ptv); +#define _EVENT_VERSION "1.4.14b-stable" + #ifdef __cplusplus } #endif diff --git a/lib/libevent/shlib_version b/lib/libevent/shlib_version index 012c14171d3..3f0196ebf4a 100644 --- a/lib/libevent/shlib_version +++ b/lib/libevent/shlib_version @@ -1,2 +1,2 @@ major=3 -minor=0 +minor=1 |