Commit d1e9b4b96cc8d237c3532cf83da0d4b99d19abb5

Tom Tromey 2019-04-09T14:00:10

Merge pull request #482 from sharkcz/aarch64 fix check for Linux/aarch64

diff --git a/src/aarch64/ffi.c b/src/aarch64/ffi.c
index f5aae17..6f6aac4 100644
--- a/src/aarch64/ffi.c
+++ b/src/aarch64/ffi.c
@@ -19,7 +19,7 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  */
 
-#ifdef __arm64__
+#if defined(__aarch64__) || defined(__arm64__)
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdint.h>
diff --git a/src/aarch64/sysv.S b/src/aarch64/sysv.S
index 5662414..6761ee1 100644
--- a/src/aarch64/sysv.S
+++ b/src/aarch64/sysv.S
@@ -19,7 +19,7 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  */
 
-#ifdef __arm64__
+#if defined(__aarch64__) || defined(__arm64__)
 #define LIBFFI_ASM
 #include <fficonfig.h>
 #include <ffi.h>