From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E26EA138334 for ; Sat, 4 Jan 2020 20:02:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DE952E094B; Sat, 4 Jan 2020 20:02:37 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B89D7E094B for ; Sat, 4 Jan 2020 20:02:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9B73F34DE12 for ; Sat, 4 Jan 2020 20:02:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 46EDDA8 for ; Sat, 4 Jan 2020 20:02:34 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1578168130.c7403dd14a376e143e03ad61654e843a05f3f69a.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: main.h X-VCS-Directories: / X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: c7403dd14a376e143e03ad61654e843a05f3f69a X-VCS-Branch: master Date: Sat, 4 Jan 2020 20:02:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fbc0bc69-b54b-4a51-9449-e8134f27a453 X-Archives-Hash: 91e46081cfa8bb6dc9054b9ee2b2414b commit: c7403dd14a376e143e03ad61654e843a05f3f69a Author: Fabian Groffen gentoo org> AuthorDate: Sat Jan 4 20:02:10 2020 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Sat Jan 4 20:02:10 2020 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=c7403dd1 main: try to work around different mtime/mtim struct stat fields Signed-off-by: Fabian Groffen gentoo.org> main.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.h b/main.h index 68b9795..a7fe725 100644 --- a/main.h +++ b/main.h @@ -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) | \