summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Amadio <amadio@gentoo.org>2021-05-25 16:11:03 +0200
committerGuilherme Amadio <amadio@gentoo.org>2021-05-25 16:11:37 +0200
commitba50097861ac4cac9ec20da7977258656cb94868 (patch)
treebed9dc10e85edd866695c9eac9e9f4344824a69d /dev-libs/vc
parentnet-analyzer/tcpreplay: security cleanup (diff)
downloadgentoo-ba50097861ac4cac9ec20da7977258656cb94868.tar.gz
gentoo-ba50097861ac4cac9ec20da7977258656cb94868.tar.bz2
gentoo-ba50097861ac4cac9ec20da7977258656cb94868.zip
dev-libs/vc: add missing include, bug 789348
Closes: https://bugs.gentoo.org/789348 Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
Diffstat (limited to 'dev-libs/vc')
-rw-r--r--dev-libs/vc/files/vc-1.4.1-missing-include.patch16
-rw-r--r--dev-libs/vc/vc-1.4.1-r1.ebuild (renamed from dev-libs/vc/vc-1.4.1.ebuild)2
2 files changed, 18 insertions, 0 deletions
diff --git a/dev-libs/vc/files/vc-1.4.1-missing-include.patch b/dev-libs/vc/files/vc-1.4.1-missing-include.patch
new file mode 100644
index 000000000000..487705c9efb4
--- /dev/null
+++ b/dev-libs/vc/files/vc-1.4.1-missing-include.patch
@@ -0,0 +1,16 @@
+---
+ Vc/common/simdarray.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Vc/common/simdarray.h b/Vc/common/simdarray.h
+index adbe1b7d9..ba9daf27c 100644
+--- a/Vc/common/simdarray.h
++++ b/Vc/common/simdarray.h
+@@ -33,6 +33,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ //#include "../IO"
+
+ #include <array>
++#include <limits>
+
+ #include "writemaskedvector.h"
+ #include "simdarrayhelper.h"
diff --git a/dev-libs/vc/vc-1.4.1.ebuild b/dev-libs/vc/vc-1.4.1-r1.ebuild
index 6961ddd9b52f..8ac410c11b26 100644
--- a/dev-libs/vc/vc-1.4.1.ebuild
+++ b/dev-libs/vc/vc-1.4.1-r1.ebuild
@@ -10,6 +10,8 @@ HOMEPAGE="https://github.com/VcDevel/Vc"
SRC_URI="https://github.com/VcDevel/Vc/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}"/Vc-${PV}
+PATCHES=( "${FILESDIR}"/${P}-missing-include.patch )
+
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86 ~amd64-linux ~x86-linux ~x64-macos"