diff options
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.patch | 32 |
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; +- |