Ver código fonte

fix compile error on earlier Kernels predating statx

Waldemar Brodkorb 6 meses atrás
pai
commit
c4453618c7
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      libc/sysdeps/linux/common/statx.c

+ 2 - 0
libc/sysdeps/linux/common/statx.c

@@ -19,6 +19,7 @@
 #include <sys/stat.h>
 #include <sysdep.h>
 
+#if defined(__NR_statx)
 int
 statx (int fd, const char *path, int flags,
        unsigned int mask, struct statx *buf)
@@ -26,3 +27,4 @@ statx (int fd, const char *path, int flags,
   int ret = INLINE_SYSCALL (statx, 5, fd, path, flags, mask, buf);
   return ret;
 }
+#endif