From a6bb464a892a2e564d2f7805ad7d0ace9106cf74 Mon Sep 17 00:00:00 2001 From: RĂ©mi Denis-Courmont Date: Tue, 14 Dec 2010 04:12:41 +0200 Subject: pthread_equal(): do not assume pthread_t is a comparable type Anyway, the return value from pthread_self() being the only legal pthread_t value in the case of stubs, all threads are one and the same. In other words, pthread_equal() is always true. Reviewed-by: Julien Cristau Signed-off-by: Peter Harris --- stubs.c.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs.c.m4 b/stubs.c.m4 index 8e51745..e069b9e 100644 --- a/stubs.c.m4 +++ b/stubs.c.m4 @@ -79,7 +79,7 @@ static pthread_t __pthread_self_stub(void) #ifdef NEED_EQUAL_STUB static int __pthread_equal_stub(pthread_t t1, pthread_t t2) { - return (t1 == t2); + return 1; } #endif -- cgit v1.2.3