|
Line
Link Here
|
| 0 |
-- a/coreutils/date.c |
0 |
++ b/coreutils/date.c |
|
Lines 249-255
Link Here
|
| 249 |
xstat(filename, &statbuf); |
249 |
xstat(filename, &statbuf); |
| 250 |
ts.tv_sec = statbuf.st_mtime; |
250 |
ts.tv_sec = statbuf.st_mtime; |
| 251 |
#if ENABLE_FEATURE_DATE_NANO |
251 |
#if ENABLE_FEATURE_DATE_NANO |
|
|
252 |
# if defined(__UCLIBC__) \ |
| 253 |
|| ( defined(__GLIBC__) && ! ( defined(__USE_MISC) || defined(__USE_XOPEN2K8) ) ) |
| 254 |
ts.tv_nsec = statbuf.st_mtimensec; |
| 255 |
# else |
| 252 |
ts.tv_nsec = statbuf.st_mtim.tv_nsec; |
256 |
ts.tv_nsec = statbuf.st_mtim.tv_nsec; |
|
|
257 |
# endif |
| 253 |
/* Some toolchains use .st_mtimensec instead of st_mtim.tv_nsec. |
258 |
/* Some toolchains use .st_mtimensec instead of st_mtim.tv_nsec. |
| 254 |
* If you need #define _SVID_SOURCE 1 to enable st_mtim.tv_nsec, |
259 |
* If you need #define _SVID_SOURCE 1 to enable st_mtim.tv_nsec, |
| 255 |
* drop a mail to project mailing list please |
260 |
* drop a mail to project mailing list please |