summaryrefslogtreecommitdiff
path: root/math/openblas/files/patch-cpuid__arm.c
diff options
context:
space:
mode:
authorJoseph Mingrone <jrm@FreeBSD.org>2017-02-25 18:19:50 +0000
committerJoseph Mingrone <jrm@FreeBSD.org>2017-02-25 18:19:50 +0000
commitd6a774a4d445216ba67052f64598056d182bd1f2 (patch)
treec3ce9095076846a38ec28a4b8e560ae76239828e /math/openblas/files/patch-cpuid__arm.c
parentFixes for Konsole (diff)
math/openblas: Fix build on 12-CURRENT armv6.
The build still fails on 11 armv6, however MFC of r313873 will hopefully fix the build there as well. While here also add LICENSE_FILE and fix portlint warnings. PR: 217279 Submitted by: mikael.urankar@gmail.com Approved by: phd_kimberlite@yahoo.co.jp (maintainer), swills (mentor, implicit) Differential Revision: https://reviews.freebsd.org/D9801
Diffstat (limited to 'math/openblas/files/patch-cpuid__arm.c')
-rw-r--r--math/openblas/files/patch-cpuid__arm.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/math/openblas/files/patch-cpuid__arm.c b/math/openblas/files/patch-cpuid__arm.c
new file mode 100644
index 000000000000..11bdbb26c5f2
--- /dev/null
+++ b/math/openblas/files/patch-cpuid__arm.c
@@ -0,0 +1,12 @@
+--- cpuid_arm.c.orig 2016-09-01 03:58:42 UTC
++++ cpuid_arm.c
+@@ -181,7 +181,8 @@ int detect(void)
+ }
+
+ }
+-
++#else
++ return CPU_ARMV6;
+ #endif
+
+ return CPU_UNKNOWN;