Add weak stubs for pthread_cancel API.
authorAlex Rozenman <Alex_Rozenman@mentor.com>
Sun, 2 Jun 2013 08:40:22 +0000 (11:40 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 15 Sep 2013 11:16:58 +0000 (15:16 +0400)
misc.c

diff --git a/misc.c b/misc.c
index 8e2da68..007ad23 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -2195,3 +2195,8 @@ GC_API int GC_CALL GC_get_force_unmap_on_gcollect(void)
 {
     return (int)GC_force_unmap_on_gcollect;
 }
+
+void __pthread_register_cancel() __attribute__ ((weak));
+void __pthread_unregister_cancel() __attribute__ ((weak));
+void __pthread_register_cancel() {}
+void __pthread_unregister_cancel() {}