From: Helmut Grohne Date: Mon, 1 Mar 2021 17:23:52 +0000 (+0000) Subject: Fix ftbfs on alpha, see #962676 X-Git-Tag: archive/raspbian/1.4.8+dfsg-3+rpi1~1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8d62a8e526b7209dc367b787e10242a4a3c172ec;p=libzstd.git Fix ftbfs on alpha, see #962676 Gbp-Pq: Name 0017-alpha-fbfs-st_mtime.patch --- diff --git a/programs/util.c b/programs/util.c index 5386d00..8bcfe47 100644 --- a/programs/util.c +++ b/programs/util.c @@ -171,8 +171,10 @@ int UTIL_setFileStat(const char *filename, const stat_t *statbuf) /* We check that st_mtime is a macro here in order to give us confidence * that struct stat has a struct timespec st_mtim member. We need this * check because there are some platforms that claim to be POSIX 2008 - * compliant but which do not have st_mtim... */ -#if (PLATFORM_POSIX_VERSION >= 200809L) && defined(st_mtime) + * compliant but which do not have st_mtim... + * And then there is alpha, which doesn't define st_mtime, but still has it. + */ +#if (PLATFORM_POSIX_VERSION >= 200809L) && (defined(st_mtime) || defined(__alpha__)) { /* (atime, mtime) */ struct timespec timebuf[2] = { {0, UTIME_NOW} };