about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/thread/__syscall_cp.c (renamed from src/thread/cancel_dummy.c)9
-rw-r--r--src/thread/pthread_cancel.c (renamed from src/thread/cancel_impl.c)2
-rw-r--r--src/thread/pthread_testcancel.c7
3 files changed, 12 insertions, 6 deletions
diff --git a/src/thread/cancel_dummy.c b/src/thread/__syscall_cp.c
index b630b02c..a48cee9b 100644
--- a/src/thread/cancel_dummy.c
+++ b/src/thread/__syscall_cp.c
@@ -8,10 +8,11 @@ static long sccp(syscall_arg_t nr,
 	return (__syscall)(nr, u, v, w, x, y, z);
 }
 
-weak_alias(sccp, __syscall_cp);
+weak_alias(sccp, __syscall_cp_c);
 
-static void dummy()
+long (__syscall_cp)(syscall_arg_t nr,
+                    syscall_arg_t u, syscall_arg_t v, syscall_arg_t w,
+                    syscall_arg_t x, syscall_arg_t y, syscall_arg_t z)
 {
+	return __syscall_cp_c(nr, u, v, w, x, y, z);
 }
-
-weak_alias(dummy, __testcancel);
diff --git a/src/thread/cancel_impl.c b/src/thread/pthread_cancel.c
index 069b2796..e3d291ee 100644
--- a/src/thread/cancel_impl.c
+++ b/src/thread/pthread_cancel.c
@@ -13,7 +13,7 @@ long __syscall_cp_asm(volatile void *, syscall_arg_t,
                       syscall_arg_t, syscall_arg_t, syscall_arg_t,
                       syscall_arg_t, syscall_arg_t, syscall_arg_t);
 
-long (__syscall_cp)(syscall_arg_t nr,
+long __syscall_cp_c(syscall_arg_t nr,
                     syscall_arg_t u, syscall_arg_t v, syscall_arg_t w,
                     syscall_arg_t x, syscall_arg_t y, syscall_arg_t z)
 {
diff --git a/src/thread/pthread_testcancel.c b/src/thread/pthread_testcancel.c
index 33238c0f..ba5f7c6c 100644
--- a/src/thread/pthread_testcancel.c
+++ b/src/thread/pthread_testcancel.c
@@ -1,6 +1,11 @@
 #include "pthread_impl.h"
+#include "libc.h"
 
-void __testcancel(void);
+static void dummy()
+{
+}
+
+weak_alias(dummy, __testcancel);
 
 void pthread_testcancel()
 {