diff options
Diffstat (limited to 'lib/libc/include/compat.h')
-rw-r--r-- | lib/libc/include/compat.h | 9 |
1 files changed, 9 insertions, 0 deletions
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__ */ |