Re: [MacPorts] #71656: vim build error: storage size of ‘vm_stat’ isn’t known
MacPorts
noreply at macports.org
Fri Dec 27 21:11:37 UTC 2024
#71656: vim build error: storage size of ‘vm_stat’ isn’t known
---------------------------+--------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Resolution: | Keywords:
Port: vim |
---------------------------+--------------------
Comment (by barracuda156):
The code probably should be:
{{{
# ifdef MACOS_X
{
// Mac (Darwin) way of getting the amount of RAM available
mach_port_t host = mach_host_self();
kern_return_t kret;
# if defined(HOST_VM_INFO64) && !defined(__i386__) && !defined(__ppc__)
struct vm_statistics64 vm_stat;
natural_t count = HOST_VM_INFO64_COUNT;
kret = host_statistics64(host, HOST_VM_INFO64,
(host_info64_t)&vm_stat,
&count);
# else
struct vm_statistics vm_stat;
natural_t count = HOST_VM_INFO_COUNT;
kret = host_statistics(host, HOST_VM_INFO,
(host_info_t)&vm_stat,
&count);
# endif
}}}
I.e. `HOST_VM_INFO64` may be defined, but should not be used on 32-bit.
--
Ticket URL: <https://trac.macports.org/ticket/71656#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list