1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

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)
This commit is contained in:
Mikael Urankar 2021-09-26 09:38:56 +02:00
parent 31593b7121
commit 96d8de8e10

View File

@ -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>