]> git.draconx.ca Git - gentoo-fixes.git/blob - www-client/firefox/files/firefox-52.9.0-glibc-2.36.patch
app-emulation/wine-vanilla-4.0.4: Adapt mpg123 dependency.
[gentoo-fixes.git] / www-client / firefox / files / firefox-52.9.0-glibc-2.36.patch
1 diff --git a/ipc/chromium/src/third_party/libevent/evutil_rand.c b/ipc/chromium/src/third_party/libevent/evutil_rand.c
2 index 3bab23121..c1e8a98ef 100644
3 --- a/ipc/chromium/src/third_party/libevent/evutil_rand.c
4 +++ b/ipc/chromium/src/third_party/libevent/evutil_rand.c
5 @@ -39,7 +39,7 @@
6  #include "util-internal.h"
7  #include "evthread-internal.h"
8  
9 -#ifdef _EVENT_HAVE_ARC4RANDOM
10 +#if _EVENT_HAVE_ARC4RANDOM
11  #include <stdlib.h>
12  #include <string.h>
13  int
14 @@ -58,7 +58,7 @@ evutil_secure_rng_global_setup_locks_(const int enable_locks)
15  static void
16  ev_arc4random_buf(void *buf, size_t n)
17  {
18 -#if defined(_EVENT_HAVE_ARC4RANDOM_BUF) && !(defined(__APPLE__) || defined(__ANDROID__))
19 +#if _EVENT_HAVE_ARC4RANDOM_BUF && !(defined(__APPLE__) || defined(__ANDROID__))
20         arc4random_buf(buf, n);
21  #else
22         unsigned char *b = buf;
23 @@ -139,7 +139,7 @@ evutil_secure_rng_get_bytes(void *buf, size_t n)
24         ev_arc4random_buf(buf, n);
25  }
26  
27 -#if !defined(__OpenBSD__) && !defined(ANDROID)
28 +#if 0
29  void
30  evutil_secure_rng_add_bytes(const char *buf, size_t n)
31  {
32 diff --git a/ipc/chromium/src/third_party/libevent/include/event2/util.h b/ipc/chromium/src/third_party/libevent/include/event2/util.h
33 index 42a28adcb..ed6b6207f 100644
34 --- a/ipc/chromium/src/third_party/libevent/include/event2/util.h
35 +++ b/ipc/chromium/src/third_party/libevent/include/event2/util.h
36 @@ -672,7 +672,7 @@ void evutil_secure_rng_get_bytes(void *buf, size_t n);
37   */
38  int evutil_secure_rng_init(void);
39  
40 -#if !defined(__OpenBSD__) && !defined(ANDROID)
41 +#if 0
42  /** Seed the random number generator with extra random bytes.
43  
44      You should almost never need to call this function; it should be
45 diff --git a/ipc/chromium/src/third_party/libevent/linux/event2/event-config.h b/ipc/chromium/src/third_party/libevent/linux/event2/event-config.h
46 index 56ebd3aba..21717abed 100644
47 --- a/ipc/chromium/src/third_party/libevent/linux/event2/event-config.h
48 +++ b/ipc/chromium/src/third_party/libevent/linux/event2/event-config.h
49 @@ -24,10 +24,10 @@
50  /* #undef _EVENT_DISABLE_THREAD_SUPPORT */
51  
52  /* Define to 1 if you have the `arc4random' function. */
53 -/* #undef _EVENT_HAVE_ARC4RANDOM */
54 +#define _EVENT_HAVE_ARC4RANDOM (__GLIBC__ >= 2 && __GLIBC_MINOR__ >= 36)
55  
56  /* Define to 1 if you have the `arc4random_buf' function. */
57 -/* #undef _EVENT_HAVE_ARC4RANDOM_BUF */
58 +#define _EVENT_HAVE_ARC4RANDOM_BUF _EVENT_HAVE_ARC4RANDOM
59  
60  /* Define to 1 if you have the <arpa/inet.h> header file. */
61  #define _EVENT_HAVE_ARPA_INET_H 1