File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ $(package)_version=2.1.12-stable
33$(package)_download_path =https://github.com/libevent/libevent/releases/download/release-$($(package ) _version) /
44$(package)_file_name =$(package ) -$($(package ) _version) .tar.gz
55$(package)_sha256_hash =92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb
6+ $(package)_patches = glibc_compatibility.patch
67
78# When building for Windows, we set _WIN32_WINNT to target the same Windows
89# version as we do in configure. Due to quirks in libevents build system, this
@@ -16,6 +17,10 @@ define $(package)_set_vars
1617 $(package ) _cppflags_mingw32=-D_WIN32_WINNT=0x0601
1718endef
1819
20+ define $(package)_preprocess_cmds
21+ patch -p1 -i $($(package ) _patch_dir) /glibc_compatibility.patch
22+ endef
23+
1924define $(package)_config_cmds
2025 $($(package ) _autoconf)
2126endef
Original file line number Diff line number Diff line change 1+ Avoid getrandom@GLIBC_2.25 symbol.
2+
3+ --- old/config.h.in
4+ +++ new/config.h.in
5+ @@ -101,9 +101,6 @@
6+ /* Define to 1 if you have the `getprotobynumber' function. */
7+ #undef HAVE_GETPROTOBYNUMBER
8+
9+ - /* Define to 1 if you have the `getrandom' function. */
10+ - #undef HAVE_GETRANDOM
11+ -
12+ /* Define to 1 if you have the `getservbyname' function. */
13+ #undef HAVE_GETSERVBYNAME
14+
You can’t perform that action at this time.
0 commit comments