From 47ece046a6da727737b10b2342cec7d3dd6469a3 Mon Sep 17 00:00:00 2001 From: Zhao Zhili Date: Sat, 17 Oct 2026 14:14:00 +0800 Subject: [PATCH] configure: stop probing for pthread_cancel HAVE_PTHREAD_CANCEL has no consumers left: udp no longer cancels its receive thread, and the dnn guards were already removed. Android bionic and Windows w32threads do not provide pthread_cancel(), and on Darwin a cancel request made while cancellation is disabled may never acted on (see PR #24886). Probing for pthread_cancel may invite new code to depend on it. Signed-off-by: Zhao Zhili --- configure | 2 -- 1 file changed, 2 deletions(-) diff --git a/configure b/configure index a0a9ce3ffc..192a82f5b3 100755 --- a/configure +++ b/configure @@ -2536,7 +2536,6 @@ SYSTEM_FUNCS=" PeekNamedPipe posix_memalign prctl - pthread_cancel pthread_set_name_np pthread_setaffinity_np pthread_setname_np @@ -7162,7 +7161,6 @@ if ! disabled pthreads && ! enabled w32threads && ! enabled os2threads; then if enabled pthreads; then check_builtin sem_timedwait semaphore.h "sem_t *s; sem_init(s,0,0); sem_timedwait(s,0); sem_destroy(s)" $pthreads_extralibs - check_func pthread_cancel $pthreads_extralibs hdrs=pthread.h if enabled pthread_np_h; then hdrs="$hdrs pthread_np.h"