diff options
author | 2020-01-04 21:02:10 +0100 | |
---|---|---|
committer | 2020-01-04 21:02:10 +0100 | |
commit | c7403dd14a376e143e03ad61654e843a05f3f69a (patch) | |
tree | e18217f5db442c01346681c21ab1655f4dbb6d37 /main.h | |
parent | libq/tree: ignore Packages file when seemingly outdated (diff) | |
download | portage-utils-c7403dd14a376e143e03ad61654e843a05f3f69a.tar.gz portage-utils-c7403dd14a376e143e03ad61654e843a05f3f69a.tar.bz2 portage-utils-c7403dd14a376e143e03ad61654e843a05f3f69a.zip |
main: try to work around different mtime/mtim struct stat fields
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'main.h')
-rw-r--r-- | main.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -56,6 +56,13 @@ extern const char *argv0; # define MAX(x, y) ((x) < (y) ? (y) : (x)) #endif +#ifdef HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC +# define st_mtim st_mtimespec +#endif +#ifdef HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC +# define st_mtim st_mtim.st__tim +#endif + #define READ_BE_INT32(P) \ ((((unsigned char *)(P))[0] << 24) | \ (((unsigned char *)(P))[1] << 16) | \ |