ソースを参照

if arch doesnt provide _syscall6(), we need to alias the 64bit version

Mike Frysinger 20 年 前
コミット
bfc0df1617
1 ファイル変更1 行追加1 行削除
  1. 1 1
      libc/sysdeps/linux/common/posix_fadvise.c

+ 1 - 1
libc/sysdeps/linux/common/posix_fadvise.c

@@ -20,7 +20,7 @@
 _syscall4(int, posix_fadvise, int, fd, off_t, offset,
 _syscall4(int, posix_fadvise, int, fd, off_t, offset,
           off_t, len, int, advice);
           off_t, len, int, advice);
 
 
-#if defined __UCLIBC_HAS_LFS__ && !defined __NR_fadvise64_64
+#if defined __UCLIBC_HAS_LFS__ && (!defined __NR_fadvise64_64 || !defined _syscall6)
 weak_alias(posix_fadvise, posix_fadvise64)
 weak_alias(posix_fadvise, posix_fadvise64)
 #endif
 #endif