From 83f954e85939527ed86e6343bfe1b8453d838abe Mon Sep 17 00:00:00 2001
From: Nicolas George <nicolas.george@normalesup.org>
Date: Tue, 8 May 2012 19:02:33 +0200
Subject: [PATCH] configure: check for pthread_cancel.

---
 configure | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure b/configure
index 783c9e07755..e070c0b2e66 100755
--- a/configure
+++ b/configure
@@ -1221,6 +1221,7 @@ HAVE_LIST="
     PeekNamedPipe
     poll_h
     posix_memalign
+    pthread_cancel
     round
     roundf
     sched_getaffinity
@@ -3175,6 +3176,10 @@ for thread in $THREADS_LIST; do
     fi
 done
 
+if enabled pthreads; then
+  check_func pthread_cancel
+fi
+
 check_lib math.h sin -lm && LIBM="-lm"
 disabled crystalhd || check_lib libcrystalhd/libcrystalhd_if.h DtsCrystalHDVersion -lcrystalhd || disable crystalhd
 enabled vaapi && require vaapi va/va.h vaInitialize -lva
-- 
GitLab