zstd/define-mtime-e2k.patch
Alexander Stefanov 4433d5e08a new patch for e2k
2020-10-06 15:39:00 +00:00

13 lines
436 B
Diff

diff --git a/programs/util.c b/programs/util.c
index ab1abd3..30c9237 100644
--- a/programs/util.c
+++ b/programs/util.c
@@ -28,7 +28,7 @@ extern "C" {
# include <io.h> /* _chmod */
#else
# include <unistd.h> /* chown, stat */
-# if PLATFORM_POSIX_VERSION < 200809L
+# if PLATFORM_POSIX_VERSION < 200809L || !defined(st_mtime)
# include <utime.h> /* utime */
# else
# include <fcntl.h> /* AT_FDCWD */