diff --git a/devel/libevent/Makefile b/devel/libevent/Makefile index f0d3927edb2c..2f781b8c2d48 100644 --- a/devel/libevent/Makefile +++ b/devel/libevent/Makefile @@ -3,7 +3,7 @@ PORTNAME= libevent PORTVERSION= 2.1.8 -PORTREVISION= 1 +PORTREVISION= 2 DISTVERSIONPREFIX= release- DISTVERSIONSUFFIX= -stable CATEGORIES= devel diff --git a/devel/libevent/files/patch-evutil__rand.c b/devel/libevent/files/patch-evutil__rand.c new file mode 100644 index 000000000000..dd454ae3d1a4 --- /dev/null +++ b/devel/libevent/files/patch-evutil__rand.c @@ -0,0 +1,13 @@ +--- evutil_rand.c.orig 2017-01-25 23:37:15 UTC ++++ evutil_rand.c +@@ -195,8 +195,10 @@ evutil_secure_rng_get_bytes(void *buf, size_t n) + void + evutil_secure_rng_add_bytes(const char *buf, size_t n) + { ++#ifdef arc4random_addrandom + arc4random_addrandom((unsigned char*)buf, + n>(size_t)INT_MAX ? INT_MAX : (int)n); ++#endif + } + + void