mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 08:29:45 +00:00
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:
parent
729ecb87bf
commit
b68bba5649
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user