Hi, I'm attaching a patch which fixes coreutils/date.c with ENABLE_FEATURE_DATE_NANO defined for uclibc and some variations on glibc.
Without this patch the following error is experienced when compiling for uclibc (including this for google hits): coreutils/date.c: In function 'date_main': coreutils/date.c:252: error: 'struct stat' has no member named 'st_mtim' A fixed ebuild for gentoo is available @ https://gitorious.org/abraxas-gentoo-overlay/abraxas-gentoo-overlay Regards, Iwan Aucamp
--- a/coreutils/date.c +++ b/coreutils/date.c @@ -249,7 +249,12 @@ xstat(filename, &statbuf); ts.tv_sec = statbuf.st_mtime; #if ENABLE_FEATURE_DATE_NANO +# if defined(__UCLIBC__) \ + || ( defined(__GLIBC__) && ! ( defined(__USE_MISC) || defined(__USE_XOPEN2K8) ) ) + ts.tv_nsec = statbuf.st_mtimensec; +# else ts.tv_nsec = statbuf.st_mtim.tv_nsec; +# endif /* 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
_______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
