File: 0017-alpha-fbfs-st_mtime.patch

package info (click to toggle)
libzstd 1.5.7%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,348 kB
  • sloc: ansic: 89,030; sh: 3,788; python: 3,466; cpp: 2,927; makefile: 2,329; asm: 390
file content (13 lines) | stat: -rw-r--r-- 516 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
Description: Fix ftbfs on alpha, see #962676
From: Helmut Grohne <helmut@subdivi.de>
--- a/programs/util.c
+++ b/programs/util.c
@@ -29,7 +29,7 @@
 #else
 #  include <unistd.h>     /* chown, stat */
 #  include <sys/stat.h>   /* utimensat, st_mtime */
-#  if (PLATFORM_POSIX_VERSION >= 200809L && defined(st_mtime)) \
+#  if (PLATFORM_POSIX_VERSION >= 200809L && (defined(st_mtime) || defined(__alpha__))) \
       || (defined(__FreeBSD__) && __FreeBSD_version >= 1100056)
 #    define ZSTD_USE_UTIMENSAT 1
 #  else