OSDN Git Service
(root)
/
android-x86
/
external-busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d94332f
)
date: make FEATURE_NANO compile on glibc systems
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 6 Jun 2010 15:53:48 +0000
(17:53 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 6 Jun 2010 15:53:48 +0000
(17:53 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/date.c
patch
|
blob
|
history
diff --git
a/coreutils/date.c
b/coreutils/date.c
index
c599df7
..
3d78a53
100644
(file)
--- a/
coreutils/date.c
+++ b/
coreutils/date.c
@@
-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