Преглед изворни кода

fix compile error on earlier Kernels predating statx

Waldemar Brodkorb пре 5 дана
родитељ
комит
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 <sys/stat.h>
 #include <sysdep.h>
 #include <sysdep.h>
 
 
+#if defined(__NR_statx)
 int
 int
 statx (int fd, const char *path, int flags,
 statx (int fd, const char *path, int flags,
        unsigned int mask, struct statx *buf)
        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);
   int ret = INLINE_SYSCALL (statx, 5, fd, path, flags, mask, buf);
   return ret;
   return ret;
 }
 }
+#endif