date: use the same code for FEATURE_DATE_NANO for glibc and uclibc
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 8 Jun 2010 02:39:30 +0000 (04:39 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 8 Jun 2010 02:39:30 +0000 (04:39 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/date.c

index 3d78a53362f375a0cd6fbc9fca8ff7eb5c915b87..c3478fab14310ea0b3fa323c95ec614218a29c93 100644 (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