summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2023-10-27 15:42:34 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2023-10-27 15:42:34 +0200
commit223d46f66af17e18be6e1eb2933a2c70eb64ad47 (patch)
tree68bcc44ab6fc168b1c007b0e8316a614565cf212 /libc/sysdeps/linux
parentffe74276cdfdb5648ba19cf0d989c09dd9bb1dc7 (diff)
depend on __UCLIBC_HAVE_STATX__
Fixes compilation issues on mips64 n32.
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/fstatat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/fstatat.c b/libc/sysdeps/linux/common/fstatat.c
index db4a8327f..13611e9d0 100644
--- a/libc/sysdeps/linux/common/fstatat.c
+++ b/libc/sysdeps/linux/common/fstatat.c
@@ -32,7 +32,7 @@ int fstatat(int fd, const char *file, struct stat *buf, int flag)
libc_hidden_def(fstatat)
#else
-#if defined(__NR_statx)
+#if defined(__NR_statx) && defined __UCLIBC_HAVE_STATX__
#include <sys/sysmacros.h> // for makedev
int fstatat(int fd, const char *file, struct stat *buf, int flag)