git: 96d8de8e100f - main - devel/upp: Fix build on aarch64.
Mikael Urankar
mikael at FreeBSD.org
Sun Sep 26 08:19:53 UTC 2021
The branch main has been updated by mikael:
URL: https://cgit.FreeBSD.org/ports/commit/?id=96d8de8e100ff16b64250f908deccf196ba22ed1
commit 96d8de8e100ff16b64250f908deccf196ba22ed1
Author: Mikael Urankar <mikael at FreeBSD.org>
AuthorDate: 2021-09-26 07:38:56 +0000
Commit: Mikael Urankar <mikael at FreeBSD.org>
CommitDate: 2021-09-26 08:19:50 +0000
devel/upp: Fix build on aarch64.
./uppsrc/Core/Cpu.cpp:193:8: error: use of undeclared identifier 'sysctlbyname'
if(sysctlbyname("vm.vmtotal", &vmt, &vmt_size, NULL, 0) >= 0 &&
Approved by: portmgr (build fix blanket)
---
devel/upp/files/patch-uppsrc_Core_Cpu.cpp | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/devel/upp/files/patch-uppsrc_Core_Cpu.cpp b/devel/upp/files/patch-uppsrc_Core_Cpu.cpp
new file mode 100644
index 000000000000..8ae7f2ab576a
--- /dev/null
+++ b/devel/upp/files/patch-uppsrc_Core_Cpu.cpp
@@ -0,0 +1,11 @@
+--- uppsrc/Core/Cpu.cpp.orig 2021-09-25 19:55:51 UTC
++++ uppsrc/Core/Cpu.cpp
+@@ -10,6 +10,8 @@
+
+ #ifdef PLATFORM_FREEBSD
+ #include <sys/vmmeter.h>
++#include <sys/types.h>
++#include <sys/sysctl.h>
+ #endif
+ #ifdef PLATFORM_MACOS
+ #include <mach/mach.h>
More information about the dev-commits-ports-all
mailing list