diff options
author | Bruno Haible <bruno@clisp.org> | 2020-12-01 19:57:17 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-12-01 19:57:17 +0100 |
commit | 00e688fc22c7bfb0bba2bd8a7b2a7d22d21d31ef (patch) | |
tree | a1d7cb36f3d4c43b1e6f0d45aba0083bfc0bf3e6 /lib/vma-iter.c | |
parent | bf8d4cb6e5b0bc4be17782487d27c244e0b21925 (diff) | |
download | gnulib-00e688fc22c7bfb0bba2bd8a7b2a7d22d21d31ef.tar.gz |
vma-iter: Add support for macOS11/arm64.
Patch suggested by Hill Ma <maahiuzeon@gmail.com> in
<https://gitlab.com/gnu-clisp/clisp/-/issues/27>
and by Martin Storsjö <martin@martin.st> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
* lib/vma-iter.c (vma_iterate): On arm64, use 64-bit type definitions.
Diffstat (limited to 'lib/vma-iter.c')
-rw-r--r-- | lib/vma-iter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vma-iter.c b/lib/vma-iter.c index 10ccda4349..5e5acf85b4 100644 --- a/lib/vma-iter.c +++ b/lib/vma-iter.c @@ -1333,7 +1333,7 @@ vma_iterate (vma_iterate_callback_fn callback, void *data) In 64-bit processes, we could use vm_region_64 or mach_vm_region. I choose vm_region_64 because it uses the same types as vm_region, resulting in less conditional code. */ -# if defined __ppc64__ || defined __x86_64__ +# if defined __aarch64__ || defined __ppc64__ || defined __x86_64__ struct vm_region_basic_info_64 info; mach_msg_type_number_t info_count = VM_REGION_BASIC_INFO_COUNT_64; |