Browse Source

depend on __UCLIBC_HAVE_STATX__

Fixes compilation issues on mips64 n32.
Waldemar Brodkorb 1 year ago
parent
commit
223d46f66a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libc/sysdeps/linux/common/fstatat.c

+ 1 - 1
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)