From ce64a546a52ef08136ffd75e79330a65dc1e6c28 Mon Sep 17 00:00:00 2001 From: kib Date: Wed, 8 Apr 2015 02:21:44 +0000 Subject: MFC r280959: Correctly handle __fcntl_compat symbol for the !SYSCALL_COMPAT case. --- lib/libc/include/compat.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/libc/include/compat.h') diff --git a/lib/libc/include/compat.h b/lib/libc/include/compat.h index 7694540..2b8f0de 100644 --- a/lib/libc/include/compat.h +++ b/lib/libc/include/compat.h @@ -44,5 +44,14 @@ __sym_compat(shmctl, freebsd7_shmctl, FBSD_1.0); #undef __sym_compat +#define __weak_reference(sym,alias) \ + .weak alias;.equ alias,sym + +#ifndef SYSCALL_COMPAT +__weak_reference(__sys_fcntl,__fcntl_compat) +#endif + +#undef __weak_reference + #endif /* __LIBC_COMPAT_H__ */ -- cgit v1.1