summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/ustat.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/ustat.c')
-rw-r--r--libc/sysdeps/linux/common/ustat.c4
1 files changed, 3 insertions, 1 deletions
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 <sys/ustat.h>
#include <sys/sysmacros.h>
-#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