]> Savannah Git Hosting - gnulib.git/commitdiff
vma-iter: Add support for macOS11/arm64.
authorBruno Haible <bruno@clisp.org>
Tue, 1 Dec 2020 18:57:17 +0000 (19:57 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 1 Dec 2020 18:57:17 +0000 (19:57 +0100)
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.

ChangeLog
lib/vma-iter.c

index 3894e7cf1acd4e543efdc92326fc2d837ef9055c..8e9e032ba7427bed9712b94a518695fac7664638 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2020-12-01  Bruno Haible  <bruno@clisp.org>
+
+       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.
+
 2020-12-01  Bruno Haible  <bruno@clisp.org>
 
        spawn-pipe: Fix handling of OS/2 kLIBC.
index 10ccda43498b7a514f819867e45bb8f4855cfb67..5e5acf85b46c1c70a1d5ab3a9e6d07be71b552cb 100644 (file)
@@ -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;