diff --git a/lib/libc/sys/openat.c b/lib/libc/sys/openat.c index 586effe08f9d..1bd12ea2a8d8 100644 --- a/lib/libc/sys/openat.c +++ b/lib/libc/sys/openat.c @@ -43,6 +43,7 @@ __sym_compat(openat, __impl_openat, FBSD_1.1); __weak_reference(openat, __impl_openat); __sym_default(openat, openat, FBSD_1.2); +#pragma weak openat int openat(int fd, const char *path, int flags, ...) { diff --git a/lib/libc/sys/setcontext.c b/lib/libc/sys/setcontext.c index 005b449b3725..31b888f2bcff 100644 --- a/lib/libc/sys/setcontext.c +++ b/lib/libc/sys/setcontext.c @@ -42,6 +42,7 @@ __sym_compat(setcontext, __impl_setcontext, FBSD_1.0); __weak_reference(setcontext, __impl_setcontext); __sym_default(setcontext, setcontext, FBSD_1.2); +#pragma weak setcontext int setcontext(const ucontext_t *uc) { diff --git a/lib/libc/sys/swapcontext.c b/lib/libc/sys/swapcontext.c index eab78c5731f6..0a8125eeabb5 100644 --- a/lib/libc/sys/swapcontext.c +++ b/lib/libc/sys/swapcontext.c @@ -43,6 +43,7 @@ __sym_compat(swapcontext, __impl_swapcontext, FBSD_1.0); __weak_reference(swapcontext, __impl_swapcontext); __sym_default(swapcontext, swapcontext, FBSD_1.2); +#pragma weak swapcontext int swapcontext(ucontext_t *oucp, const ucontext_t *ucp) {