aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-06-06 17:53:48 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-06-06 17:53:48 +0200
commitf2da16f451812f40bed51fd60a304df3d7dfc1bd (patch)
tree2b8f6f08be4ce54ed5a23a31083c0da38b90e2a6 /coreutils
parentd94332f2b6615e30a8a4d3420407dbd938885b7b (diff)
downloadbusybox-w32-f2da16f451812f40bed51fd60a304df3d7dfc1bd.tar.gz
busybox-w32-f2da16f451812f40bed51fd60a304df3d7dfc1bd.tar.bz2
busybox-w32-f2da16f451812f40bed51fd60a304df3d7dfc1bd.zip
date: make FEATURE_NANO compile on glibc systems
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/date.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/coreutils/date.c b/coreutils/date.c
index c599df735..3d78a5336 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -204,7 +204,11 @@ int date_main(int argc UNUSED_PARAM, char **argv)
204 xstat(filename, &statbuf); 204 xstat(filename, &statbuf);
205 ts.tv_sec = statbuf.st_mtime; 205 ts.tv_sec = statbuf.st_mtime;
206#if ENABLE_FEATURE_DATE_NANO 206#if ENABLE_FEATURE_DATE_NANO
207 ts.tv_nsec = statbuf.st_mtimensec; //or st_atim.tv_nsec? 207# if defined __GLIBC__ && !defined __UCLIBC__
208 ts.tv_nsec = statbuf.st_mtim.tv_nsec;
209# else
210 ts.tv_nsec = statbuf.st_mtimensec;
211# endif
208#endif 212#endif
209 } else { 213 } else {
210#if ENABLE_FEATURE_DATE_NANO 214#if ENABLE_FEATURE_DATE_NANO