mirror of
https://abf.rosa.ru/djam/zstd.git
synced 2025-02-23 09:22:54 +00:00
new patch for e2k
This commit is contained in:
parent
a5913790c0
commit
4433d5e08a
2 changed files with 14 additions and 0 deletions
13
define-mtime-e2k.patch
Normal file
13
define-mtime-e2k.patch
Normal 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 */
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue