summaryrefslogtreecommitdiff
path: root/tests/glthread
diff options
context:
space:
mode:
Diffstat (limited to 'tests/glthread')
-rw-r--r--tests/glthread/thread.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/glthread/thread.h b/tests/glthread/thread.h
index 8bc857fe..1e266bd6 100644
--- a/tests/glthread/thread.h
+++ b/tests/glthread/thread.h
@@ -149,8 +149,8 @@ extern int glthread_in_use (void);
# endif
# if !PTHREAD_IN_USE_DETECTION_HARD
-# pragma weak pthread_cancel
-# define pthread_in_use() (pthread_cancel != NULL)
+# pragma weak pthread_mutexattr_gettype
+# define pthread_in_use() (pthread_mutexattr_gettype != NULL)
# endif
# else