summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2017-10-09 11:04:17 +0000
committerJan Beich <jbeich@FreeBSD.org>2017-10-09 11:04:17 +0000
commit805cf2a8e837a64161208e9c7a822904a082a4bd (patch)
treee9ca43bf5d8f500416b48848d81459c7d4ed6b75
parentdevel/stack: Update to 1.5.1 (diff)
multimedia/libvpx: add missing glibc 2.19+ compat
-rw-r--r--multimedia/libvpx/files/patch-vpx__ports_arm__cpudetect.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/multimedia/libvpx/files/patch-vpx__ports_arm__cpudetect.c b/multimedia/libvpx/files/patch-vpx__ports_arm__cpudetect.c
index 68546dc4161c..06fe93405b40 100644
--- a/multimedia/libvpx/files/patch-vpx__ports_arm__cpudetect.c
+++ b/multimedia/libvpx/files/patch-vpx__ports_arm__cpudetect.c
@@ -1,6 +1,6 @@
--- vpx_ports/arm_cpudetect.c.orig 2017-01-12 20:27:27 UTC
+++ vpx_ports/arm_cpudetect.c
-@@ -147,6 +147,57 @@ int arm_cpu_caps(void) {
+@@ -147,6 +147,60 @@ int arm_cpu_caps(void) {
}
return flags & mask;
}
@@ -12,6 +12,7 @@
+#include <sys/param.h>
+#include <sys/sysctl.h>
+#include <elf.h>
++#include <errno.h>
+#include <unistd.h>
+
+static unsigned long getauxval(unsigned long type) {
@@ -28,6 +29,8 @@
+ for (size_t i = 0; i < nitems(auxv); i++)
+ if ((unsigned long)auxv[i].a_type == type)
+ return auxv[i].a_un.a_val;
++
++ errno = ENOENT;
+ }
+ return 0;
+}