aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2017-10-09 19:04:17 +0800
committerjbeich <jbeich@FreeBSD.org>2017-10-09 19:04:17 +0800
commit7728c73f4d1e92bb295712dff715cb49751e8130 (patch)
treee9ca43bf5d8f500416b48848d81459c7d4ed6b75
parent992635bed04007e25e0330d764cb16225a8f3d8a (diff)
downloadfreebsd-ports-gnome-7728c73f4d1e92bb295712dff715cb49751e8130.tar.gz
freebsd-ports-gnome-7728c73f4d1e92bb295712dff715cb49751e8130.tar.zst
freebsd-ports-gnome-7728c73f4d1e92bb295712dff715cb49751e8130.zip
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;
+}