summaryrefslogtreecommitdiffstats
path: root/ipc/chromium/src/third_party/libevent/patches/android-arc4random-buf.patch
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /ipc/chromium/src/third_party/libevent/patches/android-arc4random-buf.patch
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'ipc/chromium/src/third_party/libevent/patches/android-arc4random-buf.patch')
-rw-r--r--ipc/chromium/src/third_party/libevent/patches/android-arc4random-buf.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/ipc/chromium/src/third_party/libevent/patches/android-arc4random-buf.patch b/ipc/chromium/src/third_party/libevent/patches/android-arc4random-buf.patch
new file mode 100644
index 000000000..32aa3cdc8
--- /dev/null
+++ b/ipc/chromium/src/third_party/libevent/patches/android-arc4random-buf.patch
@@ -0,0 +1,32 @@
+only in patch2:
+unchanged:
+--- a/ipc/chromium/src/third_party/libevent/evutil_rand.c
++++ b/ipc/chromium/src/third_party/libevent/evutil_rand.c
+@@ -58,7 +58,7 @@ evutil_secure_rng_global_setup_locks_(const int enable_locks)
+ static void
+ ev_arc4random_buf(void *buf, size_t n)
+ {
+-#if defined(_EVENT_HAVE_ARC4RANDOM_BUF) && !defined(__APPLE__)
++#if defined(_EVENT_HAVE_ARC4RANDOM_BUF) && !(defined(__APPLE__) || defined(__ANDROID__))
+ arc4random_buf(buf, n);
+ #else
+ unsigned char *b = buf;
+only in patch2:
+unchanged:
+--- a/ipc/chromium/src/third_party/libevent/patches/android-arc4random-buf.patch
++++ b/ipc/chromium/src/third_party/libevent/patches/android-arc4random-buf.patch
+@@ -1,14 +0,0 @@
+-e6dd814 evutil_rand.c fixup for clang
+-diff --git a/ipc/chromium/src/third_party/libevent/evutil_rand.c b/ipc/chromium/src/third_party/libevent/evutil_rand.c
+-index 86c86b2..0c41765 100644
+---- a/ipc/chromium/src/third_party/libevent/evutil_rand.c
+-+++ b/ipc/chromium/src/third_party/libevent/evutil_rand.c
+-@@ -59,7 +59,7 @@ static void
+- ev_arc4random_buf(void *buf, size_t n)
+- {
+- #if defined(_EVENT_HAVE_ARC4RANDOM_BUF) && !defined(__APPLE__)
+-- return arc4random_buf(buf, n);
+-+ arc4random_buf(buf, n);
+- #else
+- unsigned char *b = buf;
+-