date: use the same code for FEATURE_DATE_NANO for glibc and uclibc

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2010-06-08 04:39:30 +02:00
parent 729ecb87bf
commit b68bba5649

View File

@ -204,11 +204,7 @@ int date_main(int argc UNUSED_PARAM, char **argv)
xstat(filename, &statbuf);
ts.tv_sec = statbuf.st_mtime;
#if ENABLE_FEATURE_DATE_NANO
# 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