new patch for e2k

This commit is contained in:
Alexander Stefanov 2020-10-06 15:39:00 +00:00
parent a5913790c0
commit 4433d5e08a
2 changed files with 14 additions and 0 deletions

13
define-mtime-e2k.patch Normal file
View file

@ -0,0 +1,13 @@
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 */

View file

@ -16,6 +16,7 @@ Group: Archiving/Compression
Url: http://www.zstd.net/ Url: http://www.zstd.net/
Source0: https://github.com/facebook/zstd/archive/v%{version}/%{name}-%{version}.tar.gz Source0: https://github.com/facebook/zstd/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: zstd-1.3.4-multi-thread-default.patch Patch0: zstd-1.3.4-multi-thread-default.patch
Patch1: define-mtime-e2k.patch
BuildRequires: gtest-devel BuildRequires: gtest-devel
BuildRequires: pkgconfig(liblz4) BuildRequires: pkgconfig(liblz4)
BuildRequires: pkgconfig(liblzma) BuildRequires: pkgconfig(liblzma)