1This is a clean copy of libevent-2.1.8-stable with the following modifications. 2 31. Add the following files: 4 5- android/event2/event-config.h 6- bsd/event2/event-config.h 7- linux/event2/event-config.h 8- mac/event2/event-config.h 9- evconfig-private.h 10 11These files are taken from libevent-2.1.8-stable built on the development 12environment indicated by the first path component. You have to run 13"./configure" and "make" to get all of the pre-processing done. The 14event-config.h header can then be found in include/event2/ sub-directory and 15evconfig-private.h can be found in the root source directory. 16 17You then need to modify the EVENT__SIZEOF_* constants in the generated Linux, 18Android, and BSD headers to be appropriate for both 32-bit and 64-bit platforms. 19Mac doesn't need this since only 64-bit is supported. Use __LP64__ to 20distinguish the two cases. If you get something wrong, the CHECK_EVENT_SIZEOF 21static assertions in message_pump_libevent.cc will fail. If a new constant is 22added, also add a static assertion for it to message_pump_libevent.cc. 23 242. Apply the following patches from 25ipc/chromium/src/third_party/libevent/patches/: 26 27- "openbsd-no-arc4random_addrandom.patch". Fixes the build on OpenBSD, 28 FreeBSD and Android (which don't provide arc4random_addrandom anymore). 29 See bug 931354, bug 1259218, bug 1497169. 30 31- "dont-use-issetugid-on-android.patch". Fixes Android startup crashes. 32 See bug 1030899. 33 34- "linux-no-sysctl.patch". Fixes the build on Linux systems without sysctl.h. 35 See bug 1263429. 36 37- "android-api-level.patch". Fixes the build under clang or NDK r16. 38 See bug 1281596, bug 1282141, and bug 1428182. 39