1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00

news/py-sabyenc3: Fix build on aarch64 (at least)

Reported by:	pkg-fallout
Reference:	http://ampere3.nyi.freebsd.org/data/130arm64-default/b44e82e7d313/logs/py38-sabyenc3-5.4.2.log
This commit is contained in:
Po-Chuan Hsieh 2022-06-16 22:00:48 +08:00
parent 6bfe58495f
commit 802cf6e3b7
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,13 @@
--- src/yencode/crc.cc.orig 2022-05-29 12:33:49 UTC
+++ src/yencode/crc.cc
@@ -43,10 +43,8 @@ int cpu_supports_crc_isa();
# include <cpu-features.h>
# elif defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD__ >= 12)
# include <sys/auxv.h>
-# include <asm/hwcap.h>
# elif (defined(__FreeBSD__) && __FreeBSD__ < 12)
# include <sys/sysctl.h>
-# include <asm/hwcap.h>
# elif defined(__APPLE__)
# include <sys/types.h>
# include <sys/sysctl.h>

View File

@ -0,0 +1,13 @@
--- src/yencode/platform.cc.orig 2022-05-29 12:33:49 UTC
+++ src/yencode/platform.cc
@@ -5,10 +5,8 @@
# include <cpu-features.h>
# elif defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD__ >= 12)
# include <sys/auxv.h>
-# include <asm/hwcap.h>
# elif (defined(__FreeBSD__) && __FreeBSD__ < 12)
# include <sys/sysctl.h>
-# include <asm/hwcap.h>
# elif defined(_WIN32)
# define WIN32_LEAN_AND_MEAN
# define NOMINMAX