From: Markos Chandras <markos.chand...@imgtec.com> Signed-off-by: Markos Chandras <markos.chand...@imgtec.com> --- libc/sysdeps/linux/common/stubs.c | 4 ++++ libc/sysdeps/linux/common/ustat.c | 2 ++ 2 files changed, 6 insertions(+)
diff --git a/libc/sysdeps/linux/common/stubs.c b/libc/sysdeps/linux/common/stubs.c index 1837195..160d27f 100644 --- a/libc/sysdeps/linux/common/stubs.c +++ b/libc/sysdeps/linux/common/stubs.c @@ -396,6 +396,10 @@ make_stub(umount2) make_stub(unshare) #endif +#if !defined __NR_ustat +make_stub(ustat) +#endif + #ifndef __NR_utimensat make_stub(futimens) make_stub(utimensat) diff --git a/libc/sysdeps/linux/common/ustat.c b/libc/sysdeps/linux/common/ustat.c index e97fa76..1bcb581 100644 --- a/libc/sysdeps/linux/common/ustat.c +++ b/libc/sysdeps/linux/common/ustat.c @@ -11,6 +11,7 @@ #include <sys/ustat.h> #include <sys/sysmacros.h> +#ifdef __NR_ustat #define __NR___syscall_ustat __NR_ustat /* Kernel's fs/super.c defines this: * long sys_ustat(unsigned dev, struct ustat __user * ubuf), @@ -24,3 +25,4 @@ int ustat(dev_t dev, struct ustat *ubuf) { return __syscall_ustat(dev, ubuf); } +#endif -- 1.8.0 _______________________________________________ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc