|
@@ -9,13 +9,14 @@
|
|
|
#include <sys/syscall.h>
|
|
|
#include <sys/stat.h>
|
|
|
#include "xstatconv.h"
|
|
|
+#include <bits/uClibc_arch_features.h>
|
|
|
|
|
|
|
|
|
#if __WORDSIZE == 64 && defined __NR_newfstatat
|
|
|
# define __NR_fstatat64 __NR_newfstatat
|
|
|
#endif
|
|
|
|
|
|
-#ifdef __NR_fstatat64
|
|
|
+#if defined(__NR_fstatat64) && !defined(__UCLIBC_USE_TIME64__)
|
|
|
int fstatat(int fd, const char *file, struct stat *buf, int flag)
|
|
|
{
|
|
|
int ret;
|
|
@@ -62,14 +63,6 @@ int fstatat(int fd, const char *file, struct stat *buf, int flag)
|
|
|
.st_mtim.tv_nsec = tmp.stx_mtime.tv_nsec,
|
|
|
.st_ctim.tv_sec = tmp.stx_ctime.tv_sec,
|
|
|
.st_ctim.tv_nsec = tmp.stx_ctime.tv_nsec,
|
|
|
-#if defined(__UCLIBC_USE_TIME64__) && !defined(__mips__)
|
|
|
- .__st_atim32.tv_sec = stx.stx_atime.tv_sec,
|
|
|
- .__st_atim32.tv_nsec = stx.stx_atime.tv_nsec,
|
|
|
- .__st_mtim32.tv_sec = stx.stx_mtime.tv_sec,
|
|
|
- .__st_mtim32.tv_nsec = stx.stx_mtime.tv_nsec,
|
|
|
- .__st_ctim32.tv_sec = stx.stx_ctime.tv_sec,
|
|
|
- .__st_ctim32.tv_nsec = stx.stx_ctime.tv_nsec,
|
|
|
-#endif
|
|
|
};
|
|
|
|
|
|
return ret;
|