py/emitglue: Fix build on AArch64 (ARMv8, etc.) related to loading .mpy files.

Actual loading of .mpy files isn't tested.
This commit is contained in:
Paul Sokolovsky 2016-05-12 16:00:57 +03:00
parent a896951a9a
commit a314b842bb

View File

@ -381,7 +381,7 @@ mp_raw_code_t *mp_raw_code_load_mem(const byte *buf, size_t len) {
// here we define mp_raw_code_load_file depending on the port // here we define mp_raw_code_load_file depending on the port
// TODO abstract this away properly // TODO abstract this away properly
#if defined(__i386__) || defined(__x86_64__) || (defined(__arm__) && (defined(__unix__))) #if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__) || (defined(__arm__) && (defined(__unix__)))
// unix file reader // unix file reader
#include <sys/stat.h> #include <sys/stat.h>