# DP: Fixes some old compatibility issues with m68k and lchown/chown --- ports/sysdeps/unix/sysv/linux/m68k/chown.c | 5 +++++ ports/sysdeps/unix/sysv/linux/m68k/lchown.c | 5 +++++ 2 files changed, 10 insertions(+) --- a/ports/sysdeps/unix/sysv/linux/m68k/chown.c +++ b/ports/sysdeps/unix/sysv/linux/m68k/chown.c @@ -67,3 +67,8 @@ } libc_hidden_def (__chown) weak_alias (__chown, chown) + +#include +#if SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2) +compat_symbol (libc, __chown, chown, GLIBC_2_1); +#endif --- a/ports/sysdeps/unix/sysv/linux/m68k/lchown.c +++ b/ports/sysdeps/unix/sysv/linux/m68k/lchown.c @@ -1 +1,6 @@ #include + +#include +#if SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2) +compat_symbol (libc, __lchown, lchown, GLIBC_2_1); +#endif