date: add a comment about _SVID_SOURCE

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2010-12-30 23:56:47 +01:00
parent ed9b08d1c1
commit d1e46651a3

View File

@ -250,7 +250,10 @@ int date_main(int argc UNUSED_PARAM, char **argv)
ts.tv_sec = statbuf.st_mtime;
#if ENABLE_FEATURE_DATE_NANO
ts.tv_nsec = statbuf.st_mtim.tv_nsec;
/* some toolchains use .st_mtimensec instead of st_mtim.tv_nsec */
/* Some toolchains use .st_mtimensec instead of st_mtim.tv_nsec.
* If you need #define SVID_SOURCE 1 to enable st_mtim.tv_nsec,
* drop a mail to project mailing list please
*/
#endif
} else {
#if ENABLE_FEATURE_DATE_NANO