summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/uthread/uthread_jmp.c
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2001-04-10 04:19:21 +0000
committerdeischen <deischen@FreeBSD.org>2001-04-10 04:19:21 +0000
commitdd46d4e05f2e301b4d9451bbfabfabbc788975c5 (patch)
treef253a6d0598ff480596963ca3fcf2b9320aefaee /lib/libc_r/uthread/uthread_jmp.c
parent3c4f2f3db28798206129ecb0f94e4aa3fa0dd106 (diff)
downloadFreeBSD-src-dd46d4e05f2e301b4d9451bbfabfabbc788975c5.zip
FreeBSD-src-dd46d4e05f2e301b4d9451bbfabfabbc788975c5.tar.gz
To be consistent, use the __weak_reference macro from <sys/cdefs.h>
instead of #pragma weak to create weak definitions. Suggested by: bde
Diffstat (limited to 'lib/libc_r/uthread/uthread_jmp.c')
-rw-r--r--lib/libc_r/uthread/uthread_jmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc_r/uthread/uthread_jmp.c b/lib/libc_r/uthread/uthread_jmp.c
index a350280..df9759f 100644
--- a/lib/libc_r/uthread/uthread_jmp.c
+++ b/lib/libc_r/uthread/uthread_jmp.c
@@ -42,9 +42,9 @@
/* Prototypes: */
static inline int check_stack(pthread_t thread, void *stackp);
-#pragma weak siglongjmp=_thread_siglongjmp
-#pragma weak longjmp=_thread_longjmp
-#pragma weak _longjmp=__thread_longjmp
+__weak_reference(_thread_siglongjmp, siglongjmp);
+__weak_reference(_thread_longjmp, longjmp);
+__weak_reference(__thread_longjmp, _longjmp);
void
_thread_siglongjmp(sigjmp_buf env, int savemask)
OpenPOWER on IntegriCloud