summaryrefslogtreecommitdiff
path: root/pkg/zstd
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/zstd')
-rw-r--r--pkg/zstd/patch/0001-Only-use-__asm__-on-GNU-compatible-compilers.patch25
-rw-r--r--pkg/zstd/ver2
2 files changed, 26 insertions, 1 deletions
diff --git a/pkg/zstd/patch/0001-Only-use-__asm__-on-GNU-compatible-compilers.patch b/pkg/zstd/patch/0001-Only-use-__asm__-on-GNU-compatible-compilers.patch
new file mode 100644
index 00000000..988a592b
--- /dev/null
+++ b/pkg/zstd/patch/0001-Only-use-__asm__-on-GNU-compatible-compilers.patch
@@ -0,0 +1,25 @@
+From 6900865fb61bba4d91472d845118e0ffac4f7e39 Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Mon, 10 Jun 2019 01:47:01 -0700
+Subject: [PATCH] Only use __asm__ on GNU-compatible compilers
+
+---
+ lib/common/cpu.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/common/cpu.h b/lib/common/cpu.h
+index 5f0923fc..76267fc3 100644
+--- a/lib/common/cpu.h
++++ b/lib/common/cpu.h
+@@ -84,7 +84,7 @@ MEM_STATIC ZSTD_cpuid_t ZSTD_cpuid(void) {
+ : "a"(7), "c"(0)
+ : "edx");
+ }
+-#elif defined(__x86_64__) || defined(_M_X64) || defined(__i386__)
++#elif (defined(__x86_64__) || defined(_M_X64) || defined(__i386__)) && defined(__GNUC__)
+ U32 n;
+ __asm__("cpuid" : "=a"(n) : "a"(0) : "ebx", "ecx", "edx");
+ if (n >= 1) {
+--
+2.20.1
+
diff --git a/pkg/zstd/ver b/pkg/zstd/ver
index 27b849ed..76020791 100644
--- a/pkg/zstd/ver
+++ b/pkg/zstd/ver
@@ -1 +1 @@
-1.4.0 r0
+1.4.0 r1