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:
parent
31593b7121
commit
96d8de8e10
11
devel/upp/files/patch-uppsrc_Core_Cpu.cpp
Normal file
11
devel/upp/files/patch-uppsrc_Core_Cpu.cpp
Normal 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>
|
Loading…
Reference in New Issue
Block a user