From aec10d86476d24a68445d2deb61210f572a435e8 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Fri, 12 Oct 2012 11:20:12 +0100 Subject: ustat: Add ustat stub for arches that don't have the ustat system call Signed-off-by: Markos Chandras Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/ustat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/common/ustat.c') diff --git a/libc/sysdeps/linux/common/ustat.c b/libc/sysdeps/linux/common/ustat.c index 157b3beac..dbb545f52 100644 --- a/libc/sysdeps/linux/common/ustat.c +++ b/libc/sysdeps/linux/common/ustat.c @@ -11,7 +11,8 @@ #include #include -#define __NR___syscall_ustat __NR_ustat +#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), * thus we use unsigned, not __kernel_dev_t. @@ -24,3 +25,4 @@ int ustat(dev_t dev, struct ustat *ubuf) { return __syscall_ustat(dev, ubuf); } +#endif -- cgit v1.2.3