Branch :
| Author | Commit | Date | CI | Message |
|---|---|---|---|---|
| 8d21ddcf | 2020-11-01 00:59:16 | Fix bufferevent_ssl_*flags() w/ disabled OpenSSL but enabled mbedTLS | ||
| 8daa1aba | 2020-10-31 23:04:55 | Merge branch 'ssl-nagle' * ssl-nagle: Introduce new BUFFEREVENT_SSL_BATCH_WRITE flag to avoid Nagle effect in SSL Introduce new API for flags of the SSL bufferevent | ||
| a490172d | 2020-10-31 22:53:31 | Introduce new BUFFEREVENT_SSL_BATCH_WRITE flag to avoid Nagle effect in SSL | ||
| 7e0fc878 | 2020-10-31 21:45:22 | Introduce new API for flags of the SSL bufferevent Introduce more generic API (like for evbuffer): - bufferevent_ssl_set_flags() - bufferevent_ssl_clear_flags() - bufferevent_ssl_get_flags() And deprecate existing: - bufferevent_openssl_get_allow_dirty_shutdown() - bufferevent_openssl_set_allow_dirty_shutdown() - bufferevent_mbedtls_get_allow_dirty_shutdown() - bufferevent_mbedtls_set_allow_dirty_shutdown() | ||
| 587f6c83 | 2020-10-31 22:50:11 | Merge branch 'ssl-fixes-after-mbedtls' * ssl-fixes-after-mbedtls: Fix BEV_IS_SSL() macro Fix preprocessor condition for BEV_IS_SSL() Remove reduntant BEV_IS_MBEDTLS Refs: #1028 | ||
| 2484500a | 2020-10-31 22:48:37 | Fix BEV_IS_SSL() macro We cannot use the same trick with external declaration, since there are copy of bufferevent_ops_ssl in each library: - openssl - mbedlts However we can just compare the name of the bufferevent type for now. (It is totally fine to use memcmp() here since it will be optimized by the compiler). | ||
| db6e22c7 | 2020-10-31 22:41:16 | Fix preprocessor condition for BEV_IS_SSL() | ||
| 39ca97ef | 2020-10-31 22:27:18 | Remove reduntant BEV_IS_MBEDTLS | ||
| afa66ea4 | 2019-09-04 00:56:20 | http: eliminate redundant bev fd manipulating and caching [WIP] At the very beginning we reset the bufferevent fd (if bev has it), which is not a good idea, since if user passes bufferevent with existing fd he has some intention. So we need to: - use BEV_OPT_CLOSE_ON_FREE for default bufferevent_socket_new() (to avoid manual shutdown/closee) - drop getsockopt(SOL_SOCKET, SO_ERROR), since bufferevent already has evutil_socket_finished_connecting_() - drop supperior bufferevent_setfd(bev, -1) in evhttp_connection_connect_() Closes: #795 Refs: #875 | ||
| 67180f8c | 2020-10-27 02:15:38 | Merge branch 'ipv6-tiny-improvements' * ipv6-tiny-improvements: http: add EVHTTP_URI_HOST_STRIP_BRACKETS http-server: add -H option to change listen address https-client: add newline into error messages https-client: add -4/-6 switches | ||
| e91c4363 | 2020-10-27 01:40:34 | http: add EVHTTP_URI_HOST_STRIP_BRACKETS Refs: #1115 | ||
| eb822ac7 | 2020-10-27 01:22:59 | http-server: add -H option to change listen address | ||
| 6135248a | 2020-10-27 01:19:40 | https-client: add newline into error messages | ||
| f51ec253 | 2020-10-27 01:17:44 | https-client: add -4/-6 switches | ||
| 22872176 | 2020-10-15 23:23:15 | becat: add timeout (client/server) and verbosity (event_enable_debug_logging()) | ||
| 6c644949 | 2020-10-11 03:23:14 | Change log message in evutil_make_socket_nonblocking in win32 Co-authored-by: guoxiang2 <guoxiang2@yy.com> | ||
| 19d0bdfe | 2020-10-04 22:56:30 | Change prefix for man pages from "le_" to "libevent_" As pointed by @kloczek: "With only two characters it would be harder to guess under what kind of name are libevent lvl 3 man pages. Longer name with bash/fix/zsh tab competition should not be a problem :)" Refs: #1099 | ||
| 21b91692 | 2020-10-04 19:55:52 | Add prefix (le_) for man pages This will: - avoid overlapping (since there is util.h.3 page) - group everything under some prefix (man le_<TAB><TAB> will show everything) Fixes: #1099 | ||
| 3012c438 | 2020-10-04 19:48:34 | Drop DOXYGEN_MAN_LINKS unsupported cmake flag MAN_LINKS is not a variable in Doxyfile anyway. | ||
| 852af060 | 2020-10-04 17:44:34 | http-server: add cli argument for max body size | ||
| 56e12131 | 2020-09-18 16:34:34 | Remove dead code from bufferevent_socket_connect | ||
| 9b270c5e | 2020-09-16 08:10:11 | Generate only real man pages with doxygen (MAN_LINKS=NO) WIth MAN_LINKS=YES doxygen will generate ton's of man pages for each field, function and so on, but it will not contain anything useful except for link to another man page (header). So to avoid man pages clashing, disable MAN_LINKS, and this will generate man pages only for explicitly documented parts. But even after this we have pretty non-unique man pages names: $ find install/ -name '*.3' install/share/man/man3/util.h.3 ... Looks like we should add prefix for each of them... But let's see if there will be a problem. Fixes: #1097 | ||
| 31a5cfd3 | 2020-09-16 08:25:20 | Remove man pages from repo (they can be generated via doxygen) The problem with this man pages are: - they are likely outdated - they don't have install target - and besides quality of man pages generated by doxygen not worse | ||
| b45a02ef | 2020-09-16 11:31:33 | sample: add https-client-mbedtls | ||
| 53c68675 | 2020-09-15 18:15:24 | test: fix windows error when mbedtls https | ||
| 67520709 | 2020-09-14 21:37:50 | Merge #1087 - tests for https with mbedtls * upstream/pr/1087: test: add https with mbedtls bufferevent_openssl: fix -Wcast-function-type for SSL_pending | ||
| a7d3cd40 | 2020-09-14 21:30:02 | Add build w/o any SSL support (i.e. w/o openssl and mbedtls) This pure build w/o SSL has been removed in mbedtls PR - #1028 | ||
| 2403ae57 | 2020-09-06 15:33:32 | test: add https with mbedtls | ||
| f07898e3 | 2020-07-25 17:17:46 | bufferevent_openssl: fix -Wcast-function-type for SSL_pending Introduced-in: #1028 | ||
| a18301a2 | 2020-09-08 15:38:16 | http: const out address param to evcon_get_peer | ||
| 02428d9a | 2020-09-01 01:08:16 | build: fix building under windows with thread support Fixes: 972289f3 ("Detect existence of pthread_mutexattr_setprotocol()") | ||
| c2a9ecff | 2020-08-29 18:41:39 | Fix: long -> enum evhttp_cmd_type type | ||
| 2338f27e | 2020-08-29 01:15:20 | test/regress_dns: fix -Wmaybe-uninitialized Was not noticed since it is reported only with optimization enabled, as stated in gcc(1): The effectiveness of some warnings depends on optimizations also being enabled. For example -Wsuggest-final-types is more effective with link-time optimization and -Wmaybe-uninitialized does not warn at all unless optimization is enabled. And interesting thing is that it is reported only for -O2, not for -O3, that's why I did not catched it in both cmake env that I had: - debug (it has -O0) - release (it has -O3) While autoconf has -O2. | ||
| 972289f3 | 2020-08-29 01:15:20 | Detect existence of pthread_mutexattr_setprotocol() Fixes: #1084 | ||
| e3e7bb21 | 2020-08-11 02:12:23 | build: add doxygen to all Fixes: 7e6c5fb4 ("build: do not try install doxygen man pages if they were not requested") Fixes: #1075 Fixes: #886 | ||
| 7e6c5fb4 | 2020-08-06 10:24:55 | build: do not try install doxygen man pages if they were not requested Fixes: #1075 | ||
| 4cf0d712 | 2020-08-06 10:12:07 | Merge #1074 yuangongji: "Fix CI failures #1071 - Install vcpkg through the source code to temporarily solve the windows CI problem. - Update cache version and replace setup-msys2." * upstream/pr/1074: fix CI:Update cache version and replace setup-msys2 fix CI: Install vcpkg through the source code to temporarily solve the windows CI problem | ||
| cf2ac1af | 2020-08-05 12:12:08 | fix CI:Update cache version and replace setup-msys2 | ||
| 92b9109e | 2020-08-05 10:14:53 | fix CI: Install vcpkg through the source code to temporarily solve the windows CI problem | ||
| eb7bed03 | 2020-08-01 16:10:48 | Convert from WinCrypt to Windows BCrypt Fixes: #1069 | ||
| efa57159 | 2020-08-01 14:05:39 | Handle return value from getrandom() | ||
| 62c152d9 | 2020-07-28 11:03:46 | Remove reduntant variables in workflows with deploy Fixes: bfbbc882 ("Change user.name/user.email to robot for deploy via github actions") | ||
| bfbbc882 | 2020-07-28 11:02:15 | Change user.name/user.email to robot for deploy via github actions | ||
| eeeed1e1 | 2020-07-28 01:19:28 | test/dns: fix initialize_nameservers when there is ipv6 in /etc/resolv.conf Fixes: #1060 | ||
| 65199178 | 2020-07-25 21:17:21 | windows socketpair tmpfile: use random prefix fixes #1058 GetTempFileNameA() takes an optional prefix, and a "unique" long value which can optionally be zero, which causes it to automatically increment until a not-yet-existing filename is found. When libevent creates many AF_UNIX socketpairs on windows, it slows down dramatically, due to always using the same blank prefix, and GetTempFileNameA() needing to iterate through all the existing socketpair filenames. With a present and varying prefix, it will have much less need to iterate. It was also possible for a race with other processes also using blank-prefix tmpfile names to result in both trying to start using the same name at the same time (because libevent deletes the file and then re-creates it as a unix socket), which should now be much less likely. Unfortuantely, "much" is just a factor of 32k, because the prefix is only 3 characters, and windows filesystems are case-insensitive, so doing better would require more sophisticated windows API usage and charset trickyness. | ||
| 85c67599 | 2020-07-24 17:19:14 | fix: compat mbedtls < 2.4 | ||
| 948ad304 | 2020-07-23 23:38:53 | Fix bufferevent_get_{openssl,mbedtls}_error() The bufferevent_get_openssl_error() returns unsigned long, so returning -1 on error in unclear. Let's use 0. Fixes: #1028 | ||
| 50dac7ad | 2020-07-23 02:01:02 | ci/doxygen: install missing libmbedtls-dev | ||
| 8ec46826 | 2020-07-23 01:08:22 | ci/coverage: add missing libmbedtls-dev | ||
| e458696c | 2020-07-23 00:28:09 | le-proxy: ignore SIGPIPE Fixes: #1057 | ||
| 53e53b01 | 2020-07-23 00:22:45 | test/regress_buffer.c: fix -Wbad-function-cast (in some specific env) Fixes: #1054 | ||
| 0e339b04 | 2020-07-23 00:14:34 | Merge branch 'mbedtls' This patch set provides mbed TLS support. The interface part (include/event2/bufferevent_ssl.h) LGTM, so this can be safely merged (although there are some bits left). Includes: - bufferevent_mbedtls_* - regress_mbedtls tests Left: - regress_http https_mbedtls support - ChangeLog entry * mbedtls: test: rename ssl/* -> openssl/* Join le_ssl_ops.post_init with le_ssl_ops.init Update LICENSE for ssl-client-mbedtls.c Merge ssl implementations (openssl and mbedtls) add mbedtls to CI fix build system and add test and cleanup code mbed TLS cmake support simple https client example using mbedtls mbedtls based SSL implementation | ||
| 1bfbbdf2 | 2020-07-22 23:10:17 | test: rename ssl/* -> openssl/* | ||
| 5671575a | 2020-07-22 23:08:50 | Join le_ssl_ops.post_init with le_ssl_ops.init | ||
| e1cdf1a1 | 2020-07-22 23:02:31 | Update LICENSE for ssl-client-mbedtls.c | ||
| d095b834 | 2020-07-07 17:26:46 | Merge ssl implementations (openssl and mbedtls) This patch splits common part out to avoid copy-paste from the - bufferevent_openssl.c - bufferevent_mbedtls.c It uses VFS/bufferevent-like approach, i.e. structure of callbacks. | ||
| dad699cc | 2020-05-27 15:29:42 | add mbedtls to CI | ||
| 028385f6 | 2020-05-28 17:14:46 | fix build system and add test and cleanup code | ||
| 8218777d | 2020-01-14 12:18:27 | mbed TLS cmake support FindMbedTLS.cmake is come from https://github.com/AVSystem/avs_commons/blob/master/cmake/FindMbedTLS.cmake, which is licensed under Apache 2.0 alternatives: https://github.com/curl/curl/blob/master/CMake/FindMbedTLS.cmake without variable MBEDTLS_ROOT_DIR https://github.com/libgit2/libgit2/blob/master/cmake/Modules/FindmbedTLS.cmake GPLv2 with a special Linking Exception | ||
| 7680409a | 2020-01-13 23:08:26 | simple https client example using mbedtls Based on mbedtls's source code programs/ssl/ssl_client1.c | ||
| b28effa9 | 2020-01-13 23:04:29 | mbedtls based SSL implementation prototype is libevent-2.1.11-stable libevent_openssl.c | ||
| 79dc8789 | 2020-07-20 21:59:10 | doc: fix typo in thread.h s/evthred_use_pthreads_with_flags/evthread_use_pthreads_with_flags/ | ||
| 883587a9 | 2020-07-10 22:18:59 | Merge #1048 -- append warning flags only if they are available (autotools) * upstream/pr/1048: build: remove -Wstrict-aliasing as strict-aliasing is disabled build: move automake options into AM_INIT_AUTOMAKE call build: remove commented code from configure.ac build: use feature detection when adding compile flags build: add ax_check_compile_flag macro | ||
| 97a899d9 | 2020-07-07 13:58:47 | build: remove -Wstrict-aliasing as strict-aliasing is disabled Note that -Wstrict-aliasing is also include in -Wall. | ||
| 28e31050 | 2020-07-03 16:02:09 | build: move automake options into AM_INIT_AUTOMAKE call | ||
| 0a537b25 | 2020-07-03 15:47:10 | build: remove commented code from configure.ac | ||
| 0ea7f707 | 2020-06-26 14:33:43 | build: use feature detection when adding compile flags Rather than trying to detect (potentially very old) GCC versions, just test whether the flag works with the compiler, and add it to CLFAGS if so. -Werror is used to convert unknown flag warnings into errors, and prevent their addition to CLFAGS. | ||
| ffb09b16 | 2020-06-26 14:04:26 | build: add ax_check_compile_flag macro | ||
| e9a6b127 | 2020-07-05 13:55:53 | ci/linux: create dist artifact only if dist archive was built Fixes: 512c88ce ("ci/linux: add dist check") | ||
| f6bfa8b3 | 2020-07-05 13:16:52 | Merge branch 'fix-signal-leak' Fixes main/fork under ASAN (LSAN if to be precise) * fix-signal-leak: select: requires reinit (otherwise it leaks signal handlers) poll: requires reinit (otherwise it leaks signal handlers) | ||
| 4edfe6ad | 2020-07-05 13:16:03 | select: requires reinit (otherwise it leaks signal handlers) Fixes: main/fork under SELECT with ASAN | ||
| c51c09b8 | 2020-07-05 13:14:36 | poll: requires reinit (otherwise it leaks signal handlers) Fixes: main/fork under POLL with ASAN | ||
| 90bcf2d6 | 2020-07-05 11:59:32 | test: fix leak in dns/getaddrinfo_cancel_stress Some requests may get response (evutil_addrinfo) from gaic_server_cb, in case of cancel_event (10000ms) will not be fast enough. | ||
| ba19b356 | 2020-07-05 11:45:56 | test: fix UB in evbuffer/empty_reference_prepend_buffer UBSAN reports: test/regress_buffer.c:2360:2: runtime error: null pointer passed as argument 1, which is declared to never be null /usr/include/string.h:140:33: note: nonnull attribute specified here | ||
| 9da1743b | 2020-07-05 11:21:04 | ci: set build type to debug with sanitizers | ||
| 7b9ba3b7 | 2020-07-05 11:14:18 | test: really disable bufferevent_pair_release_lock under ASAN (and fix gcc) | ||
| e2f938c0 | 2020-07-05 11:08:05 | test-closed: fix leak | ||
| b6497fa1 | 2020-07-04 15:55:22 | build: do not disable deprecation warnings on macOS this was for using openssl-0.9.8 included in macOS 10.7 - 10.12, but it is long since time you really should not use that openssl | ||
| 9ca7a492 | 2020-07-03 09:27:20 | Merge #1046 -- build: misc configure changes * upstream/pr/1046: build: consolidate darwin compile flag additions in configure build: consistently use dnl for comments in configure.ac | ||
| 1cea01d6 | 2020-06-28 17:10:03 | Add abi-check report into artifacts | ||
| e05ee6d3 | 2020-06-28 18:40:26 | build: consolidate darwin compile flag additions in configure This is mostly move-only, apart from some changes to comments. | ||
| 8ac10b6b | 2020-06-28 18:30:54 | build: consistently use dnl for comments in configure.ac | ||
| 0ac3cfc0 | 2020-06-26 10:35:44 | test: add getaddrinfo(AI_ADDRCONFIG) test (off by default) | ||
| ff4ec5fd | 2020-06-26 14:35:41 | build: remove duplicate -Wredundant-decls | ||
| d5aa783b | 2020-06-25 23:16:16 | Merge branch 'tests-under-sanitizers' * tests-under-sanitizers: test: fix memory leaks for https (add BEV_OPT_CLOSE_ON_FREE) test: "fix" (with a quirk) leak in ssl/bufferevent_wm (w/o defer callbacks) test: disable bufferevent/bufferevent_pair_release_lock under ASAN (too tricky) test: detect test failures if atexit handler calls _exit(!0) (sanitizers) Add LSAN suppressions (for OpenSSL temporary quirk) Add TSAN suppressions ci: run tests under sanitizers Fixes: #955 | ||
| ec94a6bb | 2020-06-25 21:56:31 | test: fix memory leaks for https (add BEV_OPT_CLOSE_ON_FREE) - http/https_filter_basic - http/https_filter_chunk_out | ||
| cdbb2373 | 2020-06-25 21:40:40 | test: "fix" (with a quirk) leak in ssl/bufferevent_wm (w/o defer callbacks) | ||
| 3b13a647 | 2020-06-25 21:25:51 | test: disable bufferevent/bufferevent_pair_release_lock under ASAN (too tricky) And cannot be suppressed with suppressions due to setup routines. | ||
| 6754740f | 2020-06-25 21:01:53 | test: detect test failures if atexit handler calls _exit(!0) (sanitizers) tinytest uses another way of detecting test failures, it uses pipe between child and parent, and if the test function in child returns OK it writes OK flag into pipe, and reads it in parent. However sanitizers uses atexit handlers to detect leaks, and this will not detect failures in case of exit() will be called from the atexit handlers, fix this by checking status after waitpid(). | ||
| 3fec471c | 2020-06-25 21:34:02 | Add LSAN suppressions (for OpenSSL temporary quirk) | ||
| b90b1925 | 2020-06-25 21:01:53 | Add TSAN suppressions | ||
| 0db4e1c4 | 2020-06-25 21:01:53 | ci: run tests under sanitizers Added: - ASAN - TSAN - UBSAN And disable some tests that are know to have leaks. | ||
| 46c9ead0 | 2020-06-25 08:08:10 | Make all classes Entry, Struct, etc) new-style classes This allows the object methods to be properly inherited and called via `super(..)`, addressing breakage with python 2.x, introduced in cfcc093606e747a5d250787012bac0b149c60d6d. Fixes #1042. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com> | ||
| c424594b | 2020-06-25 10:18:43 | evdns: do not pass NULL to memcpy() in evdns_server_request_format_response() In case of OPT pseudo-RR `class` field is treated as a requestor's UDP payload size, and class will have 512 (DNS_MAX_UDP_SIZE), and data is NULL: (gdb) p *item $4 = { next = 0x0, name = 0x602000000130 "", type = 41, class = 512, ttl = 0, is_name = 0 '\000', datalen = 0, data = 0x0 } And UBSAN will reports: ../evdns.c:2493:5: runtime error: null pointer passed as argument 2, which is declared to never be null #0 0x7ffff70b65bb in evdns_server_request_format_response ../evdns.c:2493 #1 0x7ffff70b706b in evdns_server_request_respond ../evdns.c:2529 #2 0x5555557975ab in regress_dns_server_cb ../test/regress_testutils.c:263 #3 0x7ffff70a8489 in request_parse ../evdns.c:1576 #4 0x7ffff70aa445 in server_udp_port_read ../evdns.c:1726 #5 0x7ffff70ac5cc in server_port_ready_callback ../evdns.c:1849 #6 0x7ffff6d3054c in event_persist_closure ../event.c:1645 #7 0x7ffff6d311cd in event_process_active_single_queue ../event.c:1704 #8 0x7ffff6d33258 in event_process_active ../event.c:1805 #9 0x7ffff6d361b5 in event_base_loop ../event.c:2047 #10 0x7ffff6d334ac in event_base_dispatch ../event.c:1839 #11 0x555555739df2 in test_edns ../test/regress_dns.c:2639 #12 0x5555557b9e96 in testcase_run_bare_ ../test/tinytest.c:173 #13 0x5555557ba8f0 in testcase_run_one ../test/tinytest.c:333 #14 0x5555557bc9a0 in tinytest_main ../test/tinytest.c:527 #15 0x555555787faa in main ../test/regress_main.c:528 #16 0x7ffff606c001 in __libc_start_main (/usr/lib/libc.so.6+0x27001) #17 0x55555569436d in _start (/src/le/libevent/.cmake-debug/bin/regress+0x14036d) | ||
| a0c642ac | 2020-06-25 10:15:01 | buffer: do not pass NULL to memcpy() from evbuffer_pullup() UBSAN reports: evbuffer/remove_buffer_with_empty3: ../buffer.c:1443:3: runtime error: null pointer passed as argument 2, which is declared to never be null #0 0x7ffff6cd0410 in evbuffer_pullup ../buffer.c:1443 #1 0x5555556d68b9 in test_evbuffer_remove_buffer_with_empty3 ../test/regress_buffer.c:408 #2 0x5555557b95ee in testcase_run_bare_ ../test/tinytest.c:173 #3 0x5555557ba048 in testcase_run_one ../test/tinytest.c:333 #4 0x5555557bc0f8 in tinytest_main ../test/tinytest.c:527 #5 0x555555787702 in main ../test/regress_main.c:528 #6 0x7ffff606c001 in __libc_start_main (/usr/lib/libc.so.6+0x27001) #7 0x55555569436d in _start (/src/le/libevent/.cmake-debug/bin/regress+0x14036d) | ||
| 6f152bef | 2020-06-25 09:59:35 | test: do not pass NULL to memcmp() in evbuffer_datacmp() helper Fixes: runtime error: null pointer passed as argument 2, which is declared to never be null | ||
| 37dbb350 | 2020-06-25 08:45:34 | http: fix undefined-shift in EVUTIL_IS*_ helpers evutil.c:2559:1: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' #0 0x4f2be0 in EVUTIL_ISXDIGIT_ libevent/evutil.c:2559:1 #1 0x4bd689 in regname_ok libevent/http.c:4838:7 #2 0x4bc16b in parse_authority libevent/http.c:4958:9 #3 0x4bb8b5 in evhttp_uri_parse_with_flags libevent/http.c:5103:7 #4 0x4bb762 in evhttp_uri_parse libevent/http.c:5050:9 #5 0x4b8f41 in evhttp_parse_query_impl libevent/http.c:3505:9 #6 0x4b8ed7 in evhttp_parse_query libevent/http.c:3569:9 Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23291 Report: https://oss-fuzz.com/testcase-detail/5670743106125824 | ||
| 4528d8e9 | 2020-06-25 09:08:31 | Check error code of evhttp_add_header_internal() in evhttp_parse_query_impl() | ||
| 45c3fc29 | 2020-06-22 19:40:06 | wepoll: use lower-cased windows headers This matches their use throughout the rest of the project, and fixes the build when you are cross-compiling on Linux using mingw-w64. i.e: CC epoll.lo CC wepoll.lo CC signal.lo wepoll.c:138:10: fatal error: WS2tcpip.h: No such file or directory #include <WS2tcpip.h> ^~~~~~~~~~~~ compilation terminated. make[2]: *** [Makefile:1918: wepoll.lo] Error 1 | ||
| 26d5ff45 | 2020-06-18 15:47:14 | cmake: avoid problems from use of CMAKE_USE_PTHREADS_INIT In some CMake integrations, portions of the toolchain may end up defining CMAKE_USE_PTHREADS_INIT even when EVENT__DISABLE_THREAD_SUPPORT is set for libevent. Modify the build to not rely on this side effect of find_package(Threads, ...) [which could be done elsewhere] but instead to use EVENT__HAVE_PTHREADS which is defined only on the desired codepath. Without this change, affected builds fail as a result of event_pthreads source files being built but with build defines which cause the build to fail. Signed-off-by: Paul Osborne <paul.osborne@smartthings.com> |