1diff --git a/ipc/chromium/src/third_party/libevent/android/event2/event-config.h b/ipc/chromium/src/third_party/libevent/android/event2/event-config.h
2--- a/ipc/chromium/src/third_party/libevent/android/event2/event-config.h
3+++ b/ipc/chromium/src/third_party/libevent/android/event2/event-config.h
4@@ -19,23 +19,31 @@
5
6 /* Define if libevent should not allow replacing the mm functions */
7 /* #undef EVENT__DISABLE_MM_REPLACEMENT */
8
9 /* Define if libevent should not be compiled with thread support */
10 /* #undef EVENT__DISABLE_THREAD_SUPPORT */
11
12 /* Define to 1 if you have the `accept4' function. */
13+#if __ANDROID_API__ >= 21
14 #define EVENT__HAVE_ACCEPT4 1
15+#else
16+/* #undef EVENT__HAVE_ACCEPT4 */
17+#endif
18
19 /* Define to 1 if you have the `arc4random' function. */
20 #define EVENT__HAVE_ARC4RANDOM 1
21
22 /* Define to 1 if you have the `arc4random_buf' function. */
23+#if __ANDROID_API__ >= 21 || defined(__ANDROID_API_L__)
24 #define EVENT__HAVE_ARC4RANDOM_BUF 1
25+#else
26+/* #undef EVENT__HAVE_ARC4RANDOM_BUF */
27+#endif
28
29 /* Define to 1 if you have the <arpa/inet.h> header file. */
30 #define EVENT__HAVE_ARPA_INET_H 1
31
32 /* Define to 1 if you have the `clock_gettime' function. */
33 #define EVENT__HAVE_CLOCK_GETTIME 1
34
35 /* Define to 1 if you have the declaration of `CTL_KERN', and to 0 if you
36