Commit a7d6396f06d5e1a726f24b746b509514f466380f

Dan Horák 2019-03-29T14:19:20

fix check for Linux/aarch64 fixes #473

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>