Commit fd1fe195e1d98b65ac3b0735cc0d0df95fc1b27b

Martin Storsjö 2022-05-29T14:16:49

Fix building on aarch64 after e409225b41b60c490a094bb068e639a2364202fd (#716) The ALIGN_DOWN macro was renamed in 2018 in e6eac7863e2bf1a009ea863041b354bdb4af6b67.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/aarch64/ffi.c b/src/aarch64/ffi.c
index 8f8c140..f421536 100644
--- a/src/aarch64/ffi.c
+++ b/src/aarch64/ffi.c
@@ -311,7 +311,7 @@ allocate_and_copy_struct_to_stack (struct arg_state *state, void *stack,
   size_t dest = state->next_struct_area - size;
 
   /* Round down to the natural alignment of the value.  */
-  dest = ALIGN_DOWN (dest, alignment);
+  dest = FFI_ALIGN_DOWN (dest, alignment);
   state->next_struct_area = dest;
 
   return memcpy ((char *) stack + dest, value, size);