summaryrefslogtreecommitdiff
path: root/pthread_support.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthread_support.c')
-rw-r--r--pthread_support.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/pthread_support.c b/pthread_support.c
index 957408d8..c00b93d5 100644
--- a/pthread_support.c
+++ b/pthread_support.c
@@ -2049,4 +2049,12 @@ GC_INNER void GC_notify_all_marker(void)
#endif /* PARALLEL_MARK */
+#ifdef PTHREAD_REGISTER_CANCEL_WEAK_STUBS
+ /* Workaround "undefined reference" linkage errors on some targets. */
+ void __pthread_register_cancel() __attribute__((__weak__));
+ void __pthread_unregister_cancel() __attribute__((__weak__));
+ void __pthread_register_cancel() {}
+ void __pthread_unregister_cancel() {}
+#endif
+
#endif /* GC_PTHREADS */