← Commit list

f2da16f45

Denys Vlasenko
Denys Vlasenko
2010-06-06
FAILED Duration: 34s

Subject

date: make FEATURE_NANO compile on glibc systems

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/date.c+5 -1
@@ -204,7 +204,11 @@ int date_main(int argc UNUSED_PARAM, char **argv)
xstat(filename, &statbuf);
ts.tv_sec = statbuf.st_mtime;
#if ENABLE_FEATURE_DATE_NANO
- ts.tv_nsec = statbuf.st_mtimensec; //or st_atim.tv_nsec?
+# if defined __GLIBC__ && !defined __UCLIBC__
+ ts.tv_nsec = statbuf.st_mtim.tv_nsec;
+# else
+ ts.tv_nsec = statbuf.st_mtimensec;
+# endif
#endif
} else {
#if ENABLE_FEATURE_DATE_NANO