summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)