From 90e1600f4f9e3a3dcbf0a91e23098b052c975a9d Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Wed, 15 Jul 2020 12:42:32 +0000 Subject: linux: Always define STAT_IS_KERNEL_STAT It allows to check for its value instead of its existence. Checked with a build for all affected ABIS. Reviewed-by: Lukasz Majewski --- sysdeps/unix/sysv/linux/fxstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/unix/sysv/linux/fxstat.c') diff --git a/sysdeps/unix/sysv/linux/fxstat.c b/sysdeps/unix/sysv/linux/fxstat.c index ce474dc..a88404b 100644 --- a/sysdeps/unix/sysv/linux/fxstat.c +++ b/sysdeps/unix/sysv/linux/fxstat.c @@ -38,7 +38,7 @@ __fxstat (int vers, int fd, struct stat *buf) if (vers == _STAT_VER_KERNEL) return INLINE_SYSCALL (fstat, 2, fd, buf); -#ifdef STAT_IS_KERNEL_STAT +#if STAT_IS_KERNEL_STAT return INLINE_SYSCALL_ERROR_RETURN_VALUE (EINVAL); #else struct kernel_stat kbuf; -- cgit v1.1