Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Sep 2021 08:19:52 GMT
From:      Mikael Urankar <mikael@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 96d8de8e100f - main - devel/upp: Fix build on aarch64.
Message-ID:  <202109260819.18Q8JqYF097378@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mikael:

URL: https://cgit.FreeBSD.org/ports/commit/?id=96d8de8e100ff16b64250f908deccf196ba22ed1

commit 96d8de8e100ff16b64250f908deccf196ba22ed1
Author:     Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2021-09-26 07:38:56 +0000
Commit:     Mikael Urankar <mikael@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>



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