Просмотр исходного кода

fix compile error on earlier Kernels predating statx

Waldemar Brodkorb 5 дней назад
Родитель
Сommit
c4453618c7
1 измененных файлов с 2 добавлено и 0 удалено
  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