summaryrefslogtreecommitdiffstats
path: root/ipc/chromium/src/third_party/libevent/patches/android-arc4random-buf.patch
blob: 32aa3cdc8c1b15bc0a53871e5503353cbcf67f19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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;
-