2 次代码提交 dd01754e21 ... 3e7f46572e

作者 SHA1 备注 提交日期
  Dmitry Chestnykh 3e7f46572e Revert "mips64: time64 for n32 ABI breaks a lot of tests, disable it for now" 2 月之前
  Dmitry Chestnykh 0dedba1051 mips64n32, time64: Select correct _dl_fstat impl 2 月之前
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      extra/Configs/Config.in
  2. 1 1
      ldso/include/dl-syscall.h

+ 1 - 1
extra/Configs/Config.in

@@ -1032,7 +1032,7 @@ config UCLIBC_USE_TIME64
 		   TARGET_i386                           || \
 		   TARGET_m68k                           || \
 		   TARGET_microblaze                     || \
-		   (TARGET_mips && !(CONFIG_MIPS_N64_ABI || CONFIG_MIPS_N32_ABI)) || \
+		   (TARGET_mips && !CONFIG_MIPS_N64_ABI) || \
 		   TARGET_or1k                           || \
 		   TARGET_powerpc                        || \
 		   TARGET_riscv32                        || \

+ 1 - 1
ldso/include/dl-syscall.h

@@ -168,7 +168,7 @@ static __always_inline int _dl_stat(const char *file_name,
 #if defined __NR_fstat64 && !defined __NR_fstat && (!defined(__UCLIBC_USE_TIME64__) || defined(__sparc__))
 # define __NR__dl_fstat __NR_fstat64
 static __always_inline _syscall2(int, _dl_fstat, int, fd, struct stat *, buf)
-#elif defined __NR_fstat
+#elif defined __NR_fstat && !defined __UCLIBC_USE_TIME64__ || defined(__sparc__)
 # define __NR__dl_fstat __NR_fstat
 static __always_inline _syscall2(int, _dl_fstat, int, fd, struct stat *, buf)
 #elif defined __NR_statx && defined __UCLIBC_HAVE_STATX__