picolisp: Update from 17.7.9 to 17.8.7
[termux-packages] / packages / libevent / evutil_rand.c.patch
index 7858639..279ed3d 100644 (file)
@@ -1,19 +1,14 @@
-diff -u -r ../libevent-2.0.22-stable/evutil_rand.c ./evutil_rand.c
---- ../libevent-2.0.22-stable/evutil_rand.c    2013-11-01 14:18:57.000000000 -0400
-+++ ./evutil_rand.c    2016-01-03 20:05:10.168762009 -0500
-@@ -171,10 +171,15 @@
-       ev_arc4random_buf(buf, n);
- }
-+#ifndef __ANDROID__
-+/* The arc4random_addrandom() has been removed from 64-bit Android libc,
-+   see https://bugzilla.mozilla.org/show_bug.cgi?id=931354 for motivation
-+   about just removing this function completely. */
+diff -u -r ../libevent-release-2.1.8-stable/evutil_rand.c ./evutil_rand.c
+--- ../libevent-release-2.1.8-stable/evutil_rand.c     2017-01-26 00:37:15.000000000 +0100
++++ ./evutil_rand.c    2017-01-27 23:51:13.124764486 +0100
+@@ -195,8 +195,10 @@
  void
  evutil_secure_rng_add_bytes(const char *buf, size_t n)
  {
++#ifndef __ANDROID__
        arc4random_addrandom((unsigned char*)buf,
            n>(size_t)INT_MAX ? INT_MAX : (int)n);
- }
 +#endif
+ }
  
+ void