summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-12-01 19:57:17 +0100
committerBruno Haible <bruno@clisp.org>2020-12-01 19:57:17 +0100
commit00e688fc22c7bfb0bba2bd8a7b2a7d22d21d31ef (patch)
treea1d7cb36f3d4c43b1e6f0d45aba0083bfc0bf3e6
parentbf8d4cb6e5b0bc4be17782487d27c244e0b21925 (diff)
downloadgnulib-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.
-rw-r--r--ChangeLog9
-rw-r--r--lib/vma-iter.c2
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3894e7cf1a..8e9e032ba7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
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.
Reported by KO Myung-Hun <komh78@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00005.html>.
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;