Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Oct 2017 11:04:17 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r451607 - head/multimedia/libvpx/files
Message-ID:  <201710091104.v99B4Hi3029962@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Mon Oct  9 11:04:17 2017
New Revision: 451607
URL: https://svnweb.freebsd.org/changeset/ports/451607

Log:
  multimedia/libvpx: add missing glibc 2.19+ compat

Modified:
  head/multimedia/libvpx/files/patch-vpx__ports_arm__cpudetect.c   (contents, props changed)

Modified: head/multimedia/libvpx/files/patch-vpx__ports_arm__cpudetect.c
==============================================================================
--- head/multimedia/libvpx/files/patch-vpx__ports_arm__cpudetect.c	Mon Oct  9 10:50:00 2017	(r451606)
+++ head/multimedia/libvpx/files/patch-vpx__ports_arm__cpudetect.c	Mon Oct  9 11:04:17 2017	(r451607)
@@ -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;
 +}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710091104.v99B4Hi3029962>